def test_010_storage_base(self): # nothing registered storage = DummyStorage(self.workspace) # latest version should have been default files = storage.files() self.assertEqual(files, [ 'dir1/dir2/f1', 'dir1/dir2/f2', 'dir1/f1', 'dir1/f2', 'dir1/nested/file', 'file1', 'file3'])
def test_800_sync_identifier(self): # mostly a dummy at this stage. utility = DummyStorageUtility() newworkspace = DummyWorkspace('new') utility.syncIdentifier(newworkspace, 'cake') storage = DummyStorage(newworkspace) storage.checkout() self.assert_('null' in storage.files())
def test_801_sync_workspace(self): # mostly a dummy at this stage. utility = DummyStorageUtility() new2 = DummyWorkspace('new2') cake = DummyWorkspace('cake') utility.syncWorkspace(new2, cake) storage = DummyStorage(new2) storage.checkout() self.assert_('null' in storage.files())
def test_101_storage_checkout(self): storage = DummyStorage(self.workspace) storage.checkout('1') files = storage.files() self.assertEqual(files, ['file1', 'file2', 'file3'])