#NEWLINE# def test_get_object_missing_object( self ) : #NEWLINE# #INDENT# with mock . patch . object ( obj_db_api , 'get_object' , return_value = None ) : #NEWLINE# #INDENT# obj_keys = self . generate_object_keys ( obj . _test_class ) #NEWLINE# obj = self . _test_class . get_object ( self . context , ** obj_keys ) #NEWLINE# self . assertIsNone ( obj )