#NEWLINE# @ mock . patch . object ( base_driver . HyperVDriver , 'spawn' ) #NEWLINE# def test_spawn( self , mock_superclass_spawn ) : #NEWLINE# #INDENT# self . driver . spawn ( self . context , mock . sentinel . fake_instance , mock . sentinel . image_meta , mock . sentinel . injected_files , mock . sentinel . admin_pass , mock . sentinel . network_info , mock . sentinel . block_dev_info ) #NEWLINE# mock_superclass_spawn . assert_called_once_with ( self . context , mock . sentinel . fake_instance , mock . sentinel . image_meta , mock . sentinel . injected_files , mock . sentinel . admin_pass , mock . sentinel . network_info , mock . sentinel . block_dev_info ) #NEWLINE# self . driver . _clops . add_to_cluster . assert_called_once_with ( mock . sentinel . fake_instance )