def test_decoder(self): tag_html = '<div><span><a id="1-1" u:v="$">hello</a></span><p class="this is a test">world</p></div>' a = decoder(tag_html) self.assertEqual(a, tag_html)