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