def test_0100_sync(self): utility = MercurialStorageUtility() simple1 = utility(self.simple1) filelist = simple1.files() # verify file list for simple1 self.assertEqual(filelist, self.filelist1) target = join(self.testdir, "simple1") # sync simple2 with simple1 utility.sync(self.simple2, target) simple2 = utility(self.simple2) simple2.checkout() filelist = simple2.files() self.assertEqual(filelist, self.filelist1)
def test_0101_sync_same_root_conflict_filenames(self): utility = MercurialStorageUtility() target = join(self.testdir, "simple1") # sync simple3 with simple1 utility.sync(self.simple3, target) simple3 = utility(self.simple3) simple3.checkout() filelist = simple3.files() self.assertEqual(filelist, self.filelist1) # should be a better way to show this. self.assertEqual(len(simple3.storage._repo.heads()), 2)
def test_0001_utility_base(self): utility = MercurialStorageUtility() storage = utility(self.workspace) self.assert_(isinstance(storage, MercurialStorage)) self.assert_(IStorage.providedBy(storage))