MCPcopy
hub / github.com/django/django / test_environ

Method test_environ

tests/servers/tests.py:305–307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

303 self.assertEqual(f.read().rstrip(b"\r\n"), b"example media file")
304
305 def test_environ(self):
306 with self.urlopen("/environ_view/?%s" % urlencode({"q": "тест"})) as f:
307 self.assertIn(b"QUERY_STRING: 'q=%D1%82%D0%B5%D1%81%D1%82'", f.read())
308
309
310@override_settings(ROOT_URLCONF="servers.urls")

Callers

nothing calls this directly

Calls 3

urlencodeFunction · 0.50
urlopenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected