diff --git a/rattail/tests/importing/test_importers.py b/rattail/tests/importing/test_importers.py index 5fc43011661512124a3de20b12a8ca7b252f79a2..52db2d87196487e0510a4c8afdf9cd805988eac5 100644 --- a/rattail/tests/importing/test_importers.py +++ b/rattail/tests/importing/test_importers.py @@ -9,6 +9,7 @@ from mock import Mock, patch, call from rattail.db import model from rattail.db.util import QuerySequence from rattail.importing import importers +from rattail.util import OrderedDict from rattail.tests import NullProgress, RattailTestCase from rattail.tests.importing import ImporterTester @@ -360,11 +361,11 @@ class MockImporter(importers.Importer): class TestMockImporter(ImporterTester, TestCase): importer_class = MockImporter - sample_data = { - '16oz': {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"}, - '32oz': {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"}, - '1gal': {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"}, - } + sample_data = OrderedDict([ + ('16oz', {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"}), + ('32oz', {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"}), + ('1gal', {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"}), + ]) def setUp(self): self.importer = self.make_importer()