def test_checkout_branch_git_raises2(self, mock_git, mock_gcb, mock_pigr): self.assertEqual([('FAIL', 'Unable to checkout Master Branch : ')], checkout_branch._fn(None))
def test_checkout_branch_git_raises(self, mock_git, mock_gcb, mock_pigr): self.assertEqual([('FAIL', 'Unable to checkout bar : ')], checkout_branch._fn('bar'))
def test_checkout_branch_branch_is_active(self, mock_git, mock_gcb, mock_pigr): self.assertEqual([('INFO', 'Already in foo')], checkout_branch._fn('foo'))
def test_checkout_branch_branch_is_not_active(self, mock_git, mock_gcb, mock_pigr): self.assertEqual([('INFO', 'Switch to branch: foo')], checkout_branch._fn('bar'))
def test_checkout_branch_branch_is_none(self, mock_git, mock_gcb, mock_pigr): self.assertEqual([('INFO', 'Branch: foo')], checkout_branch._fn(None))