(self, what, expectedmanpage, expectedresults)
| 12 | |
| 13 | class test_matcher(unittest.TestCase): |
| 14 | def assertMatchSingle(self, what, expectedmanpage, expectedresults): |
| 15 | m = matcher.Matcher(what, s) |
| 16 | groups = m.match() |
| 17 | self.assertEqual(len(groups), 2) |
| 18 | self.assertEqual(groups[1].manpage, expectedmanpage) |
| 19 | self.assertEqual(groups[1].results, expectedresults) |
| 20 | |
| 21 | def test_unknown_prog(self): |
| 22 | self.assertRaises(errors.ProgramDoesNotExist, matcher.Matcher("foo", s).match) |
no test coverage detected