Exemplo n.º 1
0
 def test_args_parsing(self):
     expected_stderr = "2 bugs found in input.\nMOCK: user.open_url: http://example.com/12345\nMOCK: user.open_url: http://example.com/23456\n"
     self.assert_execute_outputs(OpenBugs(), ["12345\n23456"], expected_stderr=expected_stderr)
Exemplo n.º 2
0
 def test_find_bugs_in_string(self):
     openbugs = OpenBugs()
     for expectation in self.find_bugs_in_string_expectations:
         self.assertEquals(openbugs._find_bugs_in_string(expectation[0]), expectation[1])