Exemplo n.º 1
0
 def test_check_for_uncommitted_with_changes(self, os, check_call,
                                             check_output):
     check_output.return_value = "' M opal/tests/test_core_commandline.py\n'"
     self.assertEqual(41, commandline.check_for_uncommitted())
Exemplo n.º 2
0
 def test_check_for_uncommitted_with_changes(self, os, check_call, check_output):
     check_output.return_value = "' M opal/tests/test_core_commandline.py\n'"
     self.assertEqual(41, commandline.check_for_uncommitted())
Exemplo n.º 3
0
 def test_check_for_uncommitted(self, os, check_call, check_output):
     check_output.return_value = ""
     self.assertEqual(0, commandline.check_for_uncommitted())
Exemplo n.º 4
0
 def test_check_for_uncommitted(self, os, check_call, check_output):
     check_output.return_value = ""
     self.assertEqual(0, commandline.check_for_uncommitted())