()
| 681 | |
| 682 | |
| 683 | def test_response_ctor(): |
| 684 | resp = Response() |
| 685 | |
| 686 | assert 200 == resp.status |
| 687 | assert 'OK' == resp.reason |
| 688 | assert resp.body is None |
| 689 | assert 0 == resp.content_length |
| 690 | assert CIMultiDict([('CONTENT-LENGTH', '0')]) == resp.headers |
| 691 | |
| 692 | |
| 693 | def test_ctor_with_headers_and_status(): |