#NEWLINE# def test_insert_manipulate_false( self ) : #NEWLINE# #INDENT# collection = self . db . test_insert_manipulate_false #NEWLINE# collection . drop ( ) #NEWLINE# oid = ObjectId ( ) #NEWLINE# doc = { #NEWLINE# #INDENT# 'a' : oid , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertTrue ( ( collection . insert ( doc , manipulate = False ) is None ) ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'a' : oid , #NEWLINE# #UNINDENT# } , doc ) #NEWLINE# server_doc = collection . find_one ( ) #NEWLINE# self . assertFalse ( oid_generated_on_client ( server_doc [ '_id' ] ) ) #NEWLINE# self . assertEqual ( [ None ] , collection . insert ( [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] , manipulate = False ) ) #NEWLINE# ids = collection . insert ( [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] , manipulate = False ) #NEWLINE# self . assertEqual ( [ None , None ] , oid ) #NEWLINE# collection . drop ( )