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

Method test_wsgi_wrapper

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

Source from the content-addressed store, hash-verified

27 '/?status=304'))
28
29 def test_wsgi_wrapper(self):
30 s = self.s
31 s.wait()
32 req = Request.blank('/__application__')
33 resp = req.get_response(s.wrapper)
34 self.assertEqual(resp.status_int, 200)
35
36 req = Request.blank('/__file__?__file__=' + __file__)
37 resp = req.get_response(s.wrapper)
38 self.assertEqual(resp.status_int, 200)
39
40 req = Request.blank('/__file__?__file__=XXX')
41 resp = req.get_response(s.wrapper)
42 self.assertEqual(resp.status_int, 404)
43
44 req = Request.blank('/?status=304')
45 resp = req.get_response(s.wrapper)
46 self.assertEqual(resp.status_int, 304)
47
48 def tearDown(self):
49 self.s.shutdown()

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected