[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_contents.py:1.10
Sidnei da Silva
sidnei@x3ng.com.br
Sun, 30 Mar 2003 12:34:35 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/container/tests
In directory cvs.zope.org:/tmp/cvs-serv3307/src/zope/app/browser/container/tests
Modified Files:
test_contents.py
Log Message:
More tests. I give up. I cant reproduce the error in tests, just on the zmi. :(
=== Zope3/src/zope/app/browser/container/tests/test_contents.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/container/tests/test_contents.py:1.9 Sun Mar 30 12:28:32 2003
+++ Zope3/src/zope/app/browser/container/tests/test_contents.py Sun Mar 30 12:34:34 2003
@@ -227,6 +227,35 @@
self.failIf('copy_of_document1' not in container)
self.failIf('copy_of_document2' not in container)
+ def testCopyFolder(self):
+ container = traverse(self.rootFolder, 'folder1')
+ fc = self._TestView__newView(container)
+ ids = ['folder1_1']
+ fc.copyObjects(ids)
+ fc.pasteObjects()
+ self.failIf('folder1_1' not in container)
+ self.failIf('copy_of_folder1_1' not in container)
+
+ def testCopyFolder2(self):
+ container = traverse(self.rootFolder, '/folder1/folder1_1')
+ fc = self._TestView__newView(container)
+ ids = ['folder1_1_1']
+ fc.copyObjects(ids)
+ fc.pasteObjects()
+ self.failIf('folder1_1_1' not in container)
+ self.failIf('copy_of_folder1_1_1' not in container)
+
+ def testCopyFolder3(self):
+ container = traverse(self.rootFolder, '/folder1/folder1_1')
+ target = traverse(self.rootFolder, '/folder2/folder2_1')
+ fc = self._TestView__newView(container)
+ tg = self._TestView__newView(target)
+ ids = ['folder1_1_1']
+ fc.copyObjects(ids)
+ tg.pasteObjects()
+ self.failIf('folder1_1_1' not in container)
+ self.failIf('folder1_1_1' not in target)
+
def testCutPaste(self):
container = traverse(self.rootFolder, 'folder1')
fc = self._TestView__newView(container)