Back to index

plone3  3.1.7
Public Member Functions
Archetypes.tests.test_copying.CutPasteCopyPasteTests Class Reference
Inheritance diagram for Archetypes.tests.test_copying.CutPasteCopyPasteTests:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.tests.test_copying.CutPasteCopyPasteTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_copy_and_paste
def test_cut_and_paste

Detailed Description

Definition at line 45 of file test_copying.py.


Member Function Documentation

Definition at line 47 of file test_copying.py.

00047 
00048     def test_copy_and_paste(self):
00049         ffrom = makeContent(self.folder, portal_type='SimpleFolder', id='cangucu')
00050         tourist = makeContent(ffrom, portal_type='Fact', id='tourist')
00051         fto = makeContent(self.folder, portal_type='SimpleFolder', id='london')
00052         self.failIf('tourist' not in ffrom.contentIds())
00053 
00054         #make sure we have _p_jar
00055         transaction.savepoint(optimistic=True)
00056         cb = ffrom.manage_copyObjects(ffrom.contentIds())
00057         fto.manage_pasteObjects(cb)
00058         self.failIf('tourist' not in ffrom.contentIds())
00059         self.failIf('tourist' not in fto.contentIds())

Here is the call graph for this function:

Definition at line 60 of file test_copying.py.

00060 
00061     def test_cut_and_paste(self):
00062         ffrom = makeContent(self.folder, portal_type='SimpleFolder', id='cangucu')
00063         tourist = makeContent(ffrom, portal_type='Fact', id='tourist')
00064         fto = makeContent(self.folder, portal_type='SimpleFolder', id='london')
00065         self.failIf('tourist' not in ffrom.contentIds())
00066 
00067         #make sure we have _p_jar
00068         transaction.savepoint(optimistic=True)
00069         cb = ffrom.manage_cutObjects(ffrom.contentIds())
00070         fto.manage_pasteObjects(cb)
00071         self.failIf('tourist' in ffrom.contentIds())
00072         self.failIf('tourist' not in fto.contentIds())

Here is the call graph for this function:


The documentation for this class was generated from the following file: