def to_ascii_test(self): """Test _toASCII.""" # check some conversions self.assertEqual(util._toASCII(""), "") self.assertEqual(util._toASCII(" "), " ") self.assertEqual(util._toASCII("&@`'łŁ!@#$%^&*{}[]$'<>*"), "&@`'!@#$%^&*{}[]$'<>*") self.assertEqual(util._toASCII("ABC"), "ABC") self.assertEqual(util._toASCII("aBC"), "aBC") _out = "Heizolruckstoabdampfung" self.assertEqual(util._toASCII("Heizölrückstoßabdämpfung"), _out)
def test_to_ascii(self): """Test _toASCII.""" # check some conversions assert util._toASCII("") == "" assert util._toASCII(" ") == " " assert util._toASCII("&@`'łŁ!@#$%^&*{}[]$'<>*") == \ "&@`'!@#$%^&*{}[]$'<>*" assert util._toASCII("ABC") == "ABC" assert util._toASCII("aBC") == "aBC" _out = "Heizolruckstoabdampfung" assert util._toASCII("Heizölrückstoßabdämpfung") == _out