MCPcopy
hub / github.com/benoitc/gunicorn / test_empty_vars

Method test_empty_vars

tests/test_uwsgi.py:61–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 """Test the packet construction helper."""
60
61 def test_empty_vars(self):
62 packet = make_uwsgi_packet({})
63 assert packet == b'\x00\x00\x00\x00' # modifier1=0, size=0, modifier2=0
64
65 def test_single_var(self):
66 packet = make_uwsgi_packet({'KEY': 'val'})

Callers

nothing calls this directly

Calls 1

make_uwsgi_packetFunction · 0.85

Tested by

no test coverage detected