def METHOD_NAME(self):
    """
    test calling stop() with invalid basedir path
    """
    # patch isWorkerDir() to fail
    self.setupUpIsWorkerDir(False)
    # call startCommand() and check that correct exit code is returned
    self.assertEqual(stop.stop(self.config), 1, "unexpected exit code")
    # check that isWorkerDir was called with correct argument
    self.isWorkerDir.assert_called_once_with(self.config["basedir"])