def test_setting_result_does_not_call_persist(self):
        from furious.async import Async

        result = "here be the results."

        persistence_engine = mock.Mock()

        job = Async(target=dir)

        # Manually set the persistence_engine so that the Async doesn't try to
        # reload the mock persistence_engine.
        job._persistence_engine = persistence_engine

        job.executing = True
        job.result = result

        self.assertEqual(persistence_engine.store_async_result.call_count, 0)
Ensure setting the result doesn't call persist result if not in
dataset/ETHPy150Open Workiva/furious/furious/tests/test_async.py/TestAsync.test_setting_result_does_not_call_persist