#NEWLINE# @ mock . patch . object ( base_livemigrationops . LiveMigrationOps , 'post_live_migration' ) #NEWLINE# def test_post_live_migration_not_clustered( self , mock_post_live_migration ) : #NEWLINE# #INDENT# self . livemigrops . _clustutils . vm_exists . return_value = False #NEWLINE# self . livemigrops . post_live_migration ( self . _fake_context , mock . sentinel . fake_instance , mock . sentinel . bdi ) #NEWLINE# mock_post_live_migration . assert_called_once_with ( mock_post_live_migration . _fake_context , mock . sentinel . fake_instance , mock . sentinel . bdi )