def test_encoding():
    text = "ľščťžýáíéäúňôůě".encode("iso-8859-2")
    html = decode_html(text)

    assert type(html) is unicode
Example #2
0
 def test_encoding_short(self):
     text = to_bytes("ľščťžýáíé")
     html = decode_html(text)
     self.assertEqual(type(html), unicode)
     self.assertEqual(html, "ľščťžýáíé")
def test_encoding_short():
    text = to_bytes("ľščťžýáíé")
    html = decode_html(text)

    assert type(html) is unicode
    assert html == "ľščťžýáíé"
Example #4
0
 def test_encoding(self):
     text = "ľščťžýáíéäúňôůě".encode("iso-8859-2")
     html = decode_html(text)
     self.assertEqual(type(html), unicode)