def test_setup_stubs(request_data=None, app_id='myapp', application_root='/tmp/root', trusted=False, blobstore_path='/dev/null', datastore_consistency=None, datastore_path=':memory:', datastore_require_indexes=False, datastore_auto_id_policy=datastore_stub_util.SCATTERED, images_host_prefix='http://localhost:8080', logs_path=':memory:', mail_smtp_host='', mail_smtp_port=25, mail_smtp_user='', mail_smtp_password='', mail_enable_sendmail=False, mail_show_mail_body=False, matcher_prospective_search_path='/dev/null', search_index_path=None, taskqueue_auto_run_tasks=False, taskqueue_default_http_server='http://localhost:8080', uaserver_path='localhost', user_login_url='/_ah/login?continue=%s', user_logout_url='/_ah/login?continue=%s', xmpp_path='localhost'):
 apiproxy_stub_map.apiproxy = apiproxy_stub_map.APIProxyStubMap()
 if (datastore_consistency is None):
  datastore_consistency = datastore_stub_util.PseudoRandomHRConsistencyPolicy()
 setup_stubs(request_data, app_id, application_root, trusted, blobstore_path, datastore_consistency, datastore_path, datastore_require_indexes, datastore_auto_id_policy, images_host_prefix, logs_path, mail_smtp_host, mail_smtp_port, mail_smtp_user, mail_smtp_password, mail_enable_sendmail, mail_show_mail_body, matcher_prospective_search_path, search_index_path, taskqueue_auto_run_tasks, taskqueue_default_http_server, uaserver_path, user_login_url, user_logout_url, xmpp_path)

def test_setup_stubs ( request_data = None , app_id = 'myapp' , application_root = '/tmp/root' , trusted = False , blobstore_path = '/dev/null' , datastore_consistency = None , datastore_path = ':memory:' , datastore_require_indexes = False , datastore_auto_id_policy = datastore_stub_util . SCATTERED , images_host_prefix = 'http://localhost:8080' , logs_path = ':memory:' , mail_smtp_host = '' , mail_smtp_port = 25 , mail_smtp_user = '' , mail_smtp_password = '' , mail_enable_sendmail = False , mail_show_mail_body = False , matcher_prospective_search_path = '/dev/null' , search_index_path = None , taskqueue_auto_run_tasks = False , taskqueue_default_http_server = 'http://localhost:8080' , uaserver_path = 'localhost' , user_login_url = '/_ah/login?continue=%s' , user_logout_url = '/_ah/login?continue=%s' , xmpp_path = 'localhost' ) : apiproxy_stub_map . apiproxy = apiproxy_stub_map . APIProxyStubMap ( ) if ( datastore_consistency is None ) : datastore_consistency = datastore_stub_util . PseudoRandomHRConsistencyPolicy ( ) setup_stubs ( request_data , app_id , application_root , trusted , blobstore_path , datastore_consistency , datastore_path , datastore_require_indexes , datastore_auto_id_policy , images_host_prefix , logs_path , mail_smtp_host , mail_smtp_port , mail_smtp_user , mail_smtp_password , mail_enable_sendmail , mail_show_mail_body , matcher_prospective_search_path , search_index_path , taskqueue_auto_run_tasks , taskqueue_default_http_server , uaserver_path , user_login_url , user_logout_url , xmpp_path )
similar to setup_stubs with reasonable test defaults and recallable .