def test_CopyBranch_TargetAlreadyExist_ShouldFail(self): with testhelper.createrepo(folderprefix="gitfunctionstestcase_"): branchname = "hello" Commiter.branch(branchname) self.assertFalse(Commiter.copybranch("master", branchname) is 0)
def test_CopyBranch_TargetDoesntExist_ShouldBeSucessful(self): with testhelper.createrepo(folderprefix="gitfunctionstestcase_"): branchname = "hello" self.assertEqual(0, Commiter.copybranch("master", branchname))