#NEWLINE# @ mock . patch . object ( ironic_host_manager . IronicNodeState , '__init__' ) #NEWLINE# def test_create_ironic_node_state( self , init_mock ) : #NEWLINE# #INDENT# init_mock . return_value = None #NEWLINE# compute = objects . ComputeNode ( ** { #NEWLINE# #INDENT# 'hypervisor_type' : 'ironic' , #NEWLINE# #UNINDENT# } ) #NEWLINE# host_state = self . host_manager . host_state_cls ( 'fake-host' , 'fake-node' , compute = compute ) #NEWLINE# self . assertIs ( ironic_host_manager . IronicNodeState , type ( host_state ) )