#NEWLINE# def test_create_empty_body( self ) : #NEWLINE# #INDENT# self . stubs . Set ( nova . db . api , 'instance_type_extra_specs_update_or_create' , return_create_flavor_extra_specs ) #NEWLINE# req = webob . Request . blank ( '/v1.1/123/flavors/1/os-extra_specs' ) #NEWLINE# req . method = 'POST' #NEWLINE# req . headers [ 'content-type' ] = 'application/json' #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# self . assertEqual ( 400 , self . status_int )