diff --git a/test/test_settings.py b/test/test_settings.py index 56430ef..3f44ec8 100644 --- a/test/test_settings.py +++ b/test/test_settings.py @@ -6,6 +6,8 @@ from overviewer_core.settingsValidators import ValidationException from overviewer_core import world from overviewer_core import rendermodes +from overviewer_core.util import OrderedDict + class SettingsTest(unittest.TestCase): def setUp(self): @@ -45,21 +47,21 @@ class SettingsTest(unittest.TestCase): self.s.set_config_item("worlds", { 'test': "test/data/settings/test_world", }) - self.s.set_config_item("renders", { - "myworld": { + self.s.set_config_item("renders", OrderedDict([ + ("myworld", { "title": "myworld title", "world": "test", "rendermode": rendermodes.normal, "northdirection": "upper-left", - }, + }), - "otherworld": { + ("otherworld", { "title": "otherworld title", "world": "test", "rendermode": rendermodes.normal, "bgcolor": "#ffffff" - }, - }) + }), + ])) self.s.set_config_item("outputdir", "/tmp/fictional/outputdir") self.assertEquals(fromfile.get_validated_config(), self.s.get_validated_config())