def test_text_before(self): expected = '<a href="#">Something' result = Utils.text_before(self.s, '</a>') self.assertEqual(expected, result)
def test_text_before_not_found(self): expected = self.s result = Utils.text_before(self.s, '</br>') self.assertEqual(expected, result)