def test_found_text_in_body_nothing(self): classinst = Measurement("http://example.com", 5, '^hop') found = classinst.found_text_in_body('fffhop') self.assertEqual(found, None, 'Should find nothing when looking up')
def test_found_text_in_body_found(self): classinst = Measurement("http://example.com", 5, '^hop') found = classinst.found_text_in_body('hopffff') self.assertEqual(found, True, 'Should find text when looking up')