Skip to content

Instantly share code, notes, and snippets.

@mbertheau
Created January 27, 2014 14:02
Show Gist options
  • Save mbertheau/8649060 to your computer and use it in GitHub Desktop.
Save mbertheau/8649060 to your computer and use it in GitHub Desktop.
@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