def test_process_branch_simple(self): branch_dict = self.fixture["testbranch1"] empty_repo = repository.Repository("some_svn_path") mc.process_branch(branch_dict[mc.BRANCH_KEY], empty_repo) branch1 = empty_repo.get_branches()["branch1"] self.assertEquals("branch1", branch1.get_name()) self.assertEquals("revision5", branch1.get_head())
def test_process_branch_simple(self): branch_dict = self.fixture['testbranch1'] empty_repo = repository.Repository('some_svn_path') mc.process_branch(branch_dict[mc.BRANCH_KEY], empty_repo) branch1 = empty_repo.get_branches()['branch1'] self.assertEquals('branch1', branch1.get_name()) self.assertEquals('revision5', branch1.get_head())
def test_process_branch_with_repo(self): branch_dict = self.fixture["testbranch2"] repo_dict = self.fixture["testrepo3"] repo = mc.process_repository(repo_dict[mc.REPOSITORY_KEY]) mc.process_branch(branch_dict[mc.BRANCH_KEY], repo) branch1 = repo.get_branches()["branch1"] branch2 = repo.get_branches()["branch2"] branch3 = repo.get_branches()["branch3"] self.assertEquals("branch1", branch1.get_name()) self.assertEquals("revision5", branch1.get_head()) self.assertEquals(None, branch2) self.assertEquals("branch3", branch3.get_name()) self.assertEquals("revision35", branch3.get_head())
def test_process_branch_with_repo(self): branch_dict = self.fixture['testbranch2'] repo_dict = self.fixture['testrepo3'] repo = mc.process_repository(repo_dict[mc.REPOSITORY_KEY]) mc.process_branch(branch_dict[mc.BRANCH_KEY], repo) branch1 = repo.get_branches()['branch1'] branch2 = repo.get_branches()['branch2'] branch3 = repo.get_branches()['branch3'] self.assertEquals('branch1', branch1.get_name()) self.assertEquals('revision5', branch1.get_head()) self.assertEquals(None, branch2) self.assertEquals('branch3', branch3.get_name()) self.assertEquals('revision35', branch3.get_head())