#NEWLINE# def activate( self ) : #NEWLINE# #INDENT# "Activate the testbed.\n\n    Invoking this method will also assign default values to\n    environment variables required by App Engine services such as\n    os.environ['APPLICATION_ID']. You can set custom values with\n    setup_env().\n    " #NEWLINE# self . _orig_env = dict ( os . environ ) #NEWLINE# self . setup_env ( ) #NEWLINE# self . _original_stub_map = apiproxy_stub_map . apiproxy #NEWLINE# self . _test_stub_map = apiproxy_stub_map . APIProxyStubMap ( ) #NEWLINE# internal_map = self . _original_stub_map . _APIProxyStubMap__stub_map #NEWLINE# self . _test_stub_map . _APIProxyStubMap__stub_map = dict ( internal_map ) #NEWLINE# apiproxy_stub_map . apiproxy = self . _test_stub_map #NEWLINE# self . _activated = True