def test_shouldThrowExceptionIfNoId(self): sut = BeginEndMatcher() self.assertRaises( NoIdInString, lambda: sut.get_request_id_for_line("blah") )
def test_matchWorksForStartLine(self): sut = BeginEndMatcher() id = sut.get_request_id_for_line(start_55a5) self.assertEqual(id_55a5, id)