def test_encoding_short(self):
        text = "ľščťžýáíé".encode("iso-8859-2")
        encoding = determine_encoding(text)
        self.assertEqual(encoding, "utf8")

        text = to_bytes("ľščťžýáíé")
        encoding = determine_encoding(text)
        self.assertEqual(encoding, "utf8")
def test_encoding_short():
    text = to_bytes("ľščťžýáíé")
    html = decode_html(text)

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