The accepted answer on Testbed stub for Google App Engine 'search' already points in the right direction, once you find the stub for prospective search.
Such stub can be found in google.appengine.api.prospective_search.prospective_search_stub
I chose to modify SUPPORTED_SERVICES
list in my code, so that future updates to the SDK don't break this. Although I agree that any solution is a hack anyways.
So it all ends up like this.
In the test module:
from google.appengine.ext import testbed
#Workaround to avoid prospective search complain until there is a proper
#testbed stub
from google.appengine.api.prospective_search.prospective_search_stub \
import ProspectiveSearchStub
PROSPECTIVE_SEARCH_SERVICE_NAME = "matcher"
testbed.SUPPORTED_SERVICES.append(PROSPECTIVE_SEARCH_SERVICE_NAME)
And in def setUp(self):
ps_stub = ProspectiveSearchStub('./ps.txt', None)
self.testbed._register_stub(PROSPECTIVE_SEARCH_SERVICE_NAME, ps_stub)