def METHOD_NAME(self):
    """
    test calling stop() when no worker is running
    """
    self.setUpStdoutAssertions()
    # patch basedir check to always succeed
    self.setupUpIsWorkerDir(True)
    # patch stopWorker() to raise an exception
    mock_stopWorker = mock.Mock(side_effect=stop.WorkerNotRunning())
    self.patch(stop, "stopWorker", mock_stopWorker)
    exit_code = stop.stop(self.config)
    self.assertEqual(exit_code, 0)
    self.assertStdoutEqual("worker not running\n")