()
| 584 | |
| 585 | @pytest.mark.run_loop |
| 586 | def test_prepare_calls_signal(): |
| 587 | app = mock.Mock() |
| 588 | req = make_request('GET', '/', app=app) |
| 589 | resp = StreamResponse() |
| 590 | |
| 591 | sig = mock.Mock() |
| 592 | app.on_response_prepare.append(sig) |
| 593 | yield from resp.prepare(req) |
| 594 | |
| 595 | sig.assert_called_with(req, resp) |
| 596 | |
| 597 | |
| 598 | def test_default_nodelay(): |
nothing calls this directly
no test coverage detected