def test_runs_with_none_kwarg(self, dir_mock): """Ensure run_job calls with a kwarg=None.""" from furious.async import Async from furious.async import run_job work = Async("dir", kwargs={'something': None}) run_job(work) dir_mock.assert_called_once_with(something=None)
def test_runs_with_non_arg_and_kwarg(self, dir_mock): """Ensure run_job calls with a None arg and kwarg=None.""" from furious.async import Async from furious.async import run_job work = Async("dir", [None], {'something': None}) run_job(work) dir_mock.assert_called_once_with(None, something=None)
def test_runs_with_none_arg(self, dir_mock): """Ensure run_job calls with None arg.""" from furious.async import Async from furious.async import run_job work = Async("dir", [None]) run_job(work) dir_mock.assert_called_once_with(None)