diff options
Diffstat (limited to 'cherrypy/test/test_logging.py')
| -rw-r--r-- | cherrypy/test/test_logging.py | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/cherrypy/test/test_logging.py b/cherrypy/test/test_logging.py index 58b7f5da..cb560e33 100644 --- a/cherrypy/test/test_logging.py +++ b/cherrypy/test/test_logging.py @@ -79,14 +79,7 @@ class AccessLogTests(helper.CPWebCase, logtest.LogCase): self.assertBody('content') self.assertStatus(200) - host = self.HOST - if host == '0.0.0.0': - # INADDR_ANY, which should respond on localhost. - host = "127.0.0.1" - if host == '::': - # IN6ADDR_ANY, which should respond on localhost. - host = "::1" - intro = '%s - - [' % host + intro = '%s - - [' % self.interface() self.assertLog(-1, intro) @@ -105,14 +98,7 @@ class AccessLogTests(helper.CPWebCase, logtest.LogCase): self.assertBody('content') self.assertStatus(200) - host = self.HOST - if host == '0.0.0.0': - # INADDR_ANY, which should respond on localhost. - host = "127.0.0.1" - if host == '::': - # IN6ADDR_ANY, which should respond on localhost. - host = "::1" - intro = '%s - - [' % host + intro = '%s - - [' % self.interface() self.assertLog(-1, intro) if [k for k, v in self.headers if k.lower() == 'content-length']: |
