Beispiel #1
0
 def test_fail(self, check_output):
     check_output.side_effect = CalledProcessError(None, None)
     self.assertEqual(scm.get_hg_rev(), None)
Beispiel #2
0
 def test_ok(self, check_output):
     check_output.return_value = "abcdefgh\n"
     self.assertEqual(scm.get_hg_rev(), "abcdefgh")