WIP. Add breaking test.

This commit is contained in:
Benjamin Lee 2015-11-17 06:46:48 +11:00
parent c1385c9a17
commit cf1889e157

View File

@ -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)