def test_get_local_branches(self): manager = BranchManager(self.__mConfig) branches = manager.getLocalBranches() branchNames = manager.getLocalBranchNames() names = [] for branch in branches: names.append(branch.getName()) self.assertEquals(branchNames, names)
def test_manager_construction(self): manager = BranchManager(self.__mConfig) localBranches = manager.getLocalBranchNames() expectedBranches = ['bug-14', 'bug-143', 'bug-27', 'bug-44', 'master'] self.assertEquals(expectedBranches, localBranches)