From cf1889e1575dbeb1257c37e97193fce1d2e65244 Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Tue, 17 Nov 2015 06:46:48 +1100 Subject: [PATCH] WIP. Add breaking test. --- test/http/http1/test_read.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py index 45f61b4f3..4524e1d05 100644 --- a/test/http/http1/test_read.py +++ b/test/http/http1/test_read.py @@ -297,6 +297,13 @@ class TestReadHeaders(object): with raises(HttpSyntaxException): self._read(data) + def test_read_empty_value(self): + data = b"bar:" + headers = self._read(data) + # XXX. WIP. break test + # assert headers.fields == [[b"bar", b""]] + with raises(HttpSyntaxException): + self._read(data) def test_read_chunked(): req = treq(content=None)