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