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