#NEWLINE# def test_floating_ip_allocate_no_free_ips( self ) : #NEWLINE# #INDENT# def fake_call( * args , **kwargs ) : #NEWLINE# #INDENT# raise rpc . RemoteError ( 'NoMoreFloatingIps' , '' , '' ) #NEWLINE# #UNINDENT# self . stubs . Set ( rpc , 'call' , fake_call ) #NEWLINE# req = webob . Request . blank ( '/v1.1/123/os-floating-ips' ) #NEWLINE# req . method = 'POST' #NEWLINE# req . headers [ 'Content-Type' ] = 'application/json' #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# self . assertEqual ( res . status_int , 400 )