#NEWLINE# @ mock . patch ( 'hyperv.nova.volumeops.VolumeOps.disconnect_volumes' ) #NEWLINE# def test_post_live_migration( self , mock_disconnect_volumes ) : #NEWLINE# #INDENT# self . _livemigrops . post_live_migration ( self . context , mock . sentinel . instance , mock . sentinel . block_device_info ) #NEWLINE# mock_disconnect_volumes . assert_called_once_with ( mock . sentinel . block_device_info ) #NEWLINE# self . _livemigrops . _pathutils . get_instance_dir . assert_called_once_with ( mock . sentinel . instance . name , create_dir = False , remove_dir = True )