Ejemplo n.º 1
0
 def test_moveableTo(self):
     #  A file should be moveable 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')
     mover = IObjectMover(file)
     self.failUnless(mover.moveableTo(container, 'file1'))