Ejemplo n.º 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))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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))