def test_convertli_2(self): text = "<li>Barack Obama</li><li>Adam Lanza</li>" res = convert_li(text) self.assertEqual(res, 'Barack Obama Adam Lanza')
def test_convertli_3(self): text = "<li>This is a sentence. Remove all li tags.</li>" res = convert_li(text) self.assertEqual(res, 'This is a sentence. Remove all li tags.')
def test_convertli_1(self): text = "<li>World Health Organization</li>" res = convert_li(text) self.assertEqual(res, 'World Health Organization')