def setUp(self): Harness.setUp(self) # Grab configuration from the environment, storing for later. env = wireup.env() self.environ = env.environ # Change env, doesn't change self.environ. env.canonical_scheme = 'https' env.canonical_host = 'gratipay.com' wireup.canonical(env)
def tearDown(self): Harness.tearDown(self) reset = Environment(CANONICAL_SCHEME=unicode, CANONICAL_HOST=unicode, environ=self.environ) wireup.canonical(reset)