#NEWLINE# def _test_create( self , params , no_image = False , override_controller = None ) : #NEWLINE# #INDENT# body = self . _get_servers_body ( params ) #NEWLINE# body [ 'server' ] . update ( params ) #NEWLINE# req = fakes . HTTPRequest . blank ( '/v2/fake/servers' ) #NEWLINE# req . method = 'POST' #NEWLINE# req . headers [ 'content-type' ] = 'application/json' #NEWLINE# req . body = jsonutils . dump_as_bytes ( body ) #NEWLINE# if override_controller : #NEWLINE# #INDENT# override_controller . create ( req , body = body ) . obj [ 'server' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . controller . create ( req , body = body ) . obj [ 'server' ]