#NEWLINE# def test_list_flavor_with_no_admin_ispublic_true( self ) : #NEWLINE# #INDENT# expected = { #NEWLINE# #INDENT# 'flavors' : [ { #NEWLINE# #INDENT# 'id' : '0' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : '1' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# url = ( self . _prefix + '/flavors?is_public=true' ) #NEWLINE# req = fakes . HTTPRequest . blank ( url , use_admin_context = False ) #NEWLINE# result = self . flavor_controller . index ( req ) #NEWLINE# self . _verify_flavor_list ( result [ 'flavors' ] , expected [ 'flavors' ] )