Created
January 27, 2014 14:02
-
-
Save mbertheau/8649060 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@classmethod | |
def setUpClass(cls): | |
if not hasattr(cls, 'domain'): | |
return | |
if not cls.extra_environ: | |
cls.extra_environ = {} | |
cls.extra_environ.update(HTTP_HOST=cls.domain.encode('ascii')) | |
super(MyWebTest, cls).setUpClass() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment