#NEWLINE# def test_save_returns_id( self ) : #NEWLINE# #INDENT# doc = { #NEWLINE# #INDENT# 'hello' : 'jesse' , #NEWLINE# #UNINDENT# } #NEWLINE# _id = self . db . test . save ( doc ) #NEWLINE# self . assertTrue ( isinstance ( _id , ObjectId ) ) #NEWLINE# self . assertEqual ( _id , doc [ '_id' ] ) #NEWLINE# doc [ 'hi' ] = 'bernie' #NEWLINE# _id = self . db . test . save ( doc ) #NEWLINE# self . assertTrue ( isinstance ( _id , ObjectId ) ) #NEWLINE# self . assertEqual ( _id , doc [ '_id' ] )