from lxml import etree from feed import element_to_string def test1_get_inner_html(): root = etree.fromstring('12345') assert element_to_string(root) == '12345' test1_get_inner_html() print 'All tests are OK'