コード例 #1
0
    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)
コード例 #2
0
ファイル: manager_test.py プロジェクト: jwir3/gitbranchhealth
  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)
コード例 #3
0
    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)
コード例 #4
0
ファイル: manager_test.py プロジェクト: jwir3/gitbranchhealth
  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)