#NEWLINE# def test_show( self ) : #NEWLINE# #INDENT# self . stubs . Set ( nova . db . api , 'instance_type_extra_specs_get' , return_flavor_extra_specs ) #NEWLINE# req = webob . Request . blank ( '/v1.1/123/flavors/1/os-extra_specs/key5' ) #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# self . assertEqual ( 200 , res . status_int ) #NEWLINE# res_dict = json . loads ( res . body ) #NEWLINE# self . assertEqual ( 'application/json' , res . headers [ 'Content-Type' ] ) #NEWLINE# self . assertEqual ( 'value5' , res_dict [ 'key5' ] )