#NEWLINE# def test_bad_address_param_in_remove_floating_ip( self ) : #NEWLINE# #INDENT# body = dict ( removeFloatingIp = dict ( badparam = '11.0.0.1' ) ) #NEWLINE# req = webob . Request . blank ( '/v1.1/123/servers/test_inst/action' ) #NEWLINE# req . method = 'POST' #NEWLINE# req . body = json . dumps ( body ) #NEWLINE# req . headers [ 'content-type' ] = 'application/json' #NEWLINE# resp = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# self . assertEqual ( resp . status_int , 400 )