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(self):
     text = "ľščťžýáíéäúňôůě".encode("iso-8859-2")
     determine_encoding(text)