MCPcopy Create free account
hub / github.com/Pylons/webtest / test_server

Method test_server

tests/test_http.py:12–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 self.s = http.StopableWSGIServer.create(debug_app)
11
12 def test_server(self):
13 s = self.s
14 s.wait()
15 self.assertEqual(200,
16 http.check_server(s.adj.host, s.adj.port,
17 '/__application__'))
18 self.assertEqual(200,
19 http.check_server(s.adj.host, s.adj.port,
20 '/__file__?__file__=' + __file__))
21 self.assertEqual(404,
22 http.check_server(s.adj.host, s.adj.port,
23 '/__file__?__file__=XXX'))
24
25 self.assertEqual(304,
26 http.check_server(s.adj.host, s.adj.port,
27 '/?status=304'))
28
29 def test_wsgi_wrapper(self):
30 s = self.s

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected