def setup(self):
        super(WhenStartingBaseWorker, self).setup()

        BaseWorker.main()
def test_starting_worker(mock_worker_runner):
    BaseWorker.main()

    mock_worker_runner.assert_called_with(BaseWorker)
    mock_worker_runner().run.assert_called_with()