def test_tcp(self, tcp_flow): with pytest.raises(exceptions.CommandError): export.raw_response(tcp_flow)
def test_get(self, get_response): assert b"header-response: svalue" in export.raw_response(get_response)
def test_no_response(self, get_request): with pytest.raises(exceptions.CommandError): export.raw_response(get_request)
def test_no_content(self, get_response): get_response.response.content = None with pytest.raises(exceptions.CommandError): export.raw_response(get_response)