Beispiel #1
0
 def test_copyableTo(self):
     #  A file should be copyable to a folder that has an
     #  object with the same id.
     root = self.rootFolder
     container = traverse(root, 'folder1')
     container['file1'] = File()
     file = traverse(root, 'folder1/file1')
     copier = IObjectCopier(file)
     self.failUnless(copier.copyableTo(container, 'file1'))
Beispiel #2
0
 def test_copyableTo(self):
     #  A file should be copyable to a folder that has an
     #  object with the same id.
     root = self.rootFolder
     container = traverse(root, 'folder1')
     container['file1'] = File()
     file = traverse(root, 'folder1/file1')
     copier = IObjectCopier(file)
     self.failUnless(copier.copyableTo(container, 'file1'))