def test_text_after(self): expected = 'Something</a>' result = Utils.text_after(self.s, '<a href="#">') self.assertEqual(expected, result)
def test_text_after_not_found(self): expected = self.s result = Utils.text_after(self.s, '<h1>') self.assertEqual(expected, result)