cyrillic_convert.py Python3 refactor
This commit is contained in:
@@ -16,6 +16,7 @@ from test_settings import SettingsTest
|
||||
from test_tileset import TilesetTest
|
||||
from test_cache import TestLRU
|
||||
from test_contributors import TestContributors
|
||||
from test_cyrillic_convert import TestCyrillicConvert
|
||||
|
||||
# DISABLE THIS BLOCK TO GET LOG OUTPUT FROM TILESET FOR DEBUGGING
|
||||
if 0:
|
||||
|
||||
11
test/test_cyrillic_convert.py
Normal file
11
test/test_cyrillic_convert.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
import tempfile
|
||||
|
||||
from contrib.cyrillic_convert import convert
|
||||
|
||||
|
||||
class TestCyrillicConvert(unittest.TestCase):
|
||||
def test_convert(self):
|
||||
gibberish = '{chunk: [-2, 0],y: 65,msg: "ðåëèãèè",x: -20,z: 4,type: "sign"}'
|
||||
cyrillic = '{chunk: [-2, 0],y: 65,msg: "религии",x: -20,z: 4,type: "sign"}'
|
||||
self.assertEqual(convert(gibberish), cyrillic)
|
||||
Reference in New Issue
Block a user