Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
    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)