Exemple #1
0
 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))
Exemple #2
0
 def test_checkout_branch_git_raises(self,
                                     mock_git,
                                     mock_gcb,
                                     mock_pigr):
     self.assertEqual([('FAIL', 'Unable to checkout bar : ')], checkout_branch._fn('bar'))
Exemple #3
0
 def test_checkout_branch_branch_is_active(self,
                                           mock_git,
                                           mock_gcb,
                                           mock_pigr):
     self.assertEqual([('INFO', 'Already in foo')], checkout_branch._fn('foo'))
Exemple #4
0
 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'))
Exemple #5
0
 def test_checkout_branch_branch_is_none(self,
                                         mock_git,
                                         mock_gcb,
                                         mock_pigr):
     self.assertEqual([('INFO', 'Branch: foo')], checkout_branch._fn(None))