#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestQosDriversManagerBase , self ) . setUp ( ) #NEWLINE# self . config_parse ( ) #NEWLINE# self . setup_coreplugin ( ) #NEWLINE# config = cfg . ConfigOpts ( ) #NEWLINE# config . register_opts ( driver_mgr . QOS_PLUGIN_OPTS , 'qos' ) #NEWLINE# self . policy_data = { #NEWLINE# #INDENT# 'policy' : { #NEWLINE# #INDENT# 'id' : uuidutils . generate_uuid ( ) , #NEWLINE# 'tenant_id' : uuidutils . generate_uuid ( ) , #NEWLINE# 'name' : 'test-policy' , #NEWLINE# 'description' : 'test policy description' , #NEWLINE# 'shared' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . context = context . get_admin_context ( ) #NEWLINE# self . policy = policy_object . QosPolicy ( self . context , ** self . policy_data [ 'policy' ] ) #NEWLINE# ctxt = None #NEWLINE# self . kwargs = { #NEWLINE# #INDENT# 'context' : ctxt , #NEWLINE# #UNINDENT# }