Fixed bug in BaseDocument __init__

This commit is contained in:
Harry Marr
2009-11-18 12:53:45 +00:00
parent 688fd5af66
commit 2674d27587
2 changed files with 2 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ class FieldTest(unittest.TestCase):
self.assertRaises(ValidationError, person.__setattr__, 'preferences',
Comment(content='Nice blog post...'))
person.preferences = PersonPreferences(food='Cheese', number=47)
self.assertEqual(person.preferences.food, 'Cheese')
if __name__ == '__main__':