Merge branch 'master' of git@hmarr.com:mongomap
This commit is contained in:
commit
ff5e5addf5
@ -89,6 +89,7 @@ class FieldTest(unittest.TestCase):
|
|||||||
self.assertRaises(ValidationError, person.__setattr__, 'preferences',
|
self.assertRaises(ValidationError, person.__setattr__, 'preferences',
|
||||||
Comment(content='Nice blog post...'))
|
Comment(content='Nice blog post...'))
|
||||||
person.preferences = PersonPreferences(food='Cheese', number=47)
|
person.preferences = PersonPreferences(food='Cheese', number=47)
|
||||||
|
self.assertEqual(person.preferences.food, 'Cheese')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user