#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( AgentMethodsTestCase , self ) . setUp ( ) #NEWLINE# mgr_utils . mock_the_extension_manager ( driver = 'fake_agent' ) #NEWLINE# self . clean_steps = { #NEWLINE# #INDENT# 'deploy' : [ { #NEWLINE# #INDENT# 'interface' : 'deploy' , #NEWLINE# 'step' : 'erase_devices' , #NEWLINE# 'priority' : 20 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'interface' : 'deploy' , #NEWLINE# 'step' : 'update_firmware' , #NEWLINE# 'priority' : 30 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'raid' : [ { #NEWLINE# #INDENT# 'interface' : 'raid' , #NEWLINE# 'step' : 'create_configuration' , #NEWLINE# 'priority' : 10 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# n = { #NEWLINE# #INDENT# 'driver' : 'fake_agent' , #NEWLINE# 'driver_internal_info' : { #NEWLINE# #INDENT# 'agent_cached_clean_steps' : self . clean_steps , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . node = obj_utils . create_test_node ( self . context , ** n ) #NEWLINE# self . ports = [ obj_utils . create_test_port ( self . context , node_id = self . node . id ) ]