fixed more tests that were using undefined model fields

This commit is contained in:
Rik 2014-11-25 19:29:12 +01:00 committed by Wilson Júnior
parent 79705fbf11
commit 80f80cd31f

View File

@ -1814,7 +1814,7 @@ class FieldTest(unittest.TestCase):
Animal.drop_collection() Animal.drop_collection()
Ocorrence.drop_collection() Ocorrence.drop_collection()
a = Animal(nam="Leopard", tag="heavy", a = Animal(name="Leopard", tag="heavy",
owner=Owner(tp='u', name="Wilson Júnior") owner=Owner(tp='u', name="Wilson Júnior")
) )
a.save() a.save()
@ -1864,7 +1864,7 @@ class FieldTest(unittest.TestCase):
Animal.drop_collection() Animal.drop_collection()
Ocorrence.drop_collection() Ocorrence.drop_collection()
a = Animal(nam="Leopard", tag="heavy", a = Animal(name="Leopard", tag="heavy",
owner=Owner(tags=['cool', 'funny'], owner=Owner(tags=['cool', 'funny'],
name="Wilson Júnior") name="Wilson Júnior")
) )