#NEWLINE# def test_create_private_flavor_should_not_grant_flavor_access( self ) : #NEWLINE# #INDENT# self . expected [ 'flavor' ] [ 'os-flavor-access:is_public' ] = False #NEWLINE# body = self . _get_response ( ) #NEWLINE# for key in self . expected [ 'flavor' ] : #NEWLINE# #INDENT# self . assertEqual ( body [ 'flavor' ] [ flavor_access_body ] , self . expected [ 'flavor' ] [ key ] ) #NEWLINE# #UNINDENT# flavor_access_body = self . flavor_access_controller . index ( fakes . HTTPRequest . blank ( '' , use_admin_context = True ) , body [ 'flavor' ] [ 'id' ] ) #NEWLINE# expected_flavor_access_body = { #NEWLINE# #INDENT# 'tenant_id' : 'fake' , #NEWLINE# 'flavor_id' : ( '%s' % body [ 'flavor' ] [ 'id' ] ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertNotIn ( expected_flavor_access_body , flavor_access_body [ 'flavor_access' ] )