Exemplo n.º 1
0
 def setUp(self):
     """
     Do some nifty HTTP/WSGI magic which allows for WSGI to be called
     directly by something like the `httplib` library.
     """
     BaseLimitTestSuite.setUp(self)
     self.app = limits.WsgiLimiter(TEST_LIMITS)
     wire_HTTPConnection_to_WSGI("169.254.0.1:80", self.app)
     self.proxy = limits.WsgiLimiterProxy("169.254.0.1:80")
Exemplo n.º 2
0
 def setUp(self):
     """Run before each test."""
     BaseLimitTestSuite.setUp(self)
     self.app = limits.WsgiLimiter(TEST_LIMITS)