File: test_wsgi.py

package info (click to toggle)
aiohttp-wsgi 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 236 kB
  • sloc: python: 790; makefile: 19; sh: 8
file content (12 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from wsgiref.validate import validator
from tests.base import AsyncTestCase, noop_application


validator_application = validator(noop_application)


class EnvironTest(AsyncTestCase):

    def testValidWsgi(self) -> None:
        with self.run_server(validator_application) as client:
            client.assert_response()