#NEWLINE# def test_list_flavor_with_admin_ispublic_false_proj2( self ) : #NEWLINE# #INDENT# expected = { #NEWLINE# #INDENT# 'flavors' : [ { #NEWLINE# #INDENT# 'id' : '2' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : '3' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# url = ( self . _prefix + '/flavors?is_public=false' ) #NEWLINE# req = fakes . HTTPRequest . blank ( url , use_admin_context = True ) #NEWLINE# req . environ [ 'nova.context' ] . project_id = 'proj2' #NEWLINE# result = self . flavor_controller . index ( req ) #NEWLINE# self . _verify_flavor_list ( url [ 'flavors' ] , expected [ 'flavors' ] )