Cleaned up _to_{python,mongo} + _validate mess

This commit is contained in:
Harry Marr
2009-11-22 17:26:47 +00:00
parent d4fc5c9260
commit f2d4ffa091
4 changed files with 38 additions and 40 deletions

View File

@@ -174,7 +174,7 @@ class DocumentTest(unittest.TestCase):
person_obj = collection.find_one({'name': 'Test User'})
self.assertEqual(person_obj['name'], 'Test User')
self.assertEqual(person_obj['age'], 30)
self.assertEqual(str(person_obj['_id']), person._id)
self.assertEqual(person_obj['_id'], person._id)
def test_save_custom_id(self):
"""Ensure that a document may be saved with a custom _id.