Switched table definition order at test_dal.py

This commit is contained in:
spametki
2013-09-01 19:16:45 -03:00
parent a634ff7954
commit b5039a5a6e
+7 -7
View File
@@ -759,18 +759,18 @@ class TestDALDictImportExport(unittest.TestCase):
mpfc = "Monty Python's Flying Circus" mpfc = "Monty Python's Flying Circus"
dbdict4 = {"uri": DEFAULT_URI, dbdict4 = {"uri": DEFAULT_URI,
"tables":[{"tablename": "staff", "tables":[{"tablename": "tvshow",
"fields": [{"fieldname": "name",
"default":mpfc},
{"fieldname": "rating",
"type":"double"}]},
{"tablename": "staff",
"fields": [{"fieldname": "name", "fields": [{"fieldname": "name",
"default":"Michael"}, "default":"Michael"},
{"fieldname": "food", {"fieldname": "food",
"default":"Spam"}, "default":"Spam"},
{"fieldname": "tvshow", {"fieldname": "tvshow",
"type": "reference tvshow"}]}, "type": "reference tvshow"}]}]}
{"tablename": "tvshow",
"fields": [{"fieldname": "name",
"default":mpfc},
{"fieldname": "rating",
"type":"double"}]}]}
db4 = DAL(**dbdict4) db4 = DAL(**dbdict4)
assert "staff" in db4.tables assert "staff" in db4.tables
assert "name" in db4.staff assert "name" in db4.staff