Пример #1
0
def testbed():
    from google.appengine.ext.testbed import Testbed

    # create an instance of testbed class
    testbed = Testbed()

    # activate the testbed, which prepares the services stub for use
    testbed.activate()
    testbed.setup_env(app_id='debug', overwrite=True)

    # declare which stubs want to use
    testbed.init_search_stub()
    testbed.init_urlfetch_stub()

    return testbed