Test GeventResponse stores status, headers, and sent.
(self)
| 187 | """Test GeventResponse helper class.""" |
| 188 | |
| 189 | def test_response_attributes(self): |
| 190 | """Test GeventResponse stores status, headers, and sent.""" |
| 191 | from gunicorn.workers.ggevent import GeventResponse |
| 192 | |
| 193 | resp = GeventResponse('200 OK', {'Content-Type': 'text/html'}, 1024) |
| 194 | assert resp.status == '200 OK' |
| 195 | assert resp.headers == {'Content-Type': 'text/html'} |
| 196 | assert resp.sent == 1024 |
| 197 | |
| 198 | |
| 199 | class TestTimeoutContext: |
nothing calls this directly
no test coverage detected