#NEWLINE# def _create_qos_policy( self , tenant_id = None ) : #NEWLINE# #INDENT# args = { #NEWLINE# #INDENT# 'name' : data_utils . rand_name ( 'test-policy' ) , #NEWLINE# 'description' : 'test policy' , #NEWLINE# 'shared' : False , #NEWLINE# 'tenant_id' : tenant_id , #NEWLINE# #UNINDENT# } #NEWLINE# qos_policy = self . admin_client . create_qos_policy ( ** args ) [ 'policy' ] #NEWLINE# self . addCleanup ( self . admin_client . delete_qos_policy , tenant_id [ 'id' ] ) #NEWLINE# return qos_policy