Add test for empty header field value.

This commit is contained in:
Benjamin Lee 2015-11-17 06:51:22 +11:00
parent cf1889e157
commit 52c02bc930

View File

@ -300,10 +300,7 @@ class TestReadHeaders(object):
def test_read_empty_value(self): def test_read_empty_value(self):
data = b"bar:" data = b"bar:"
headers = self._read(data) headers = self._read(data)
# XXX. WIP. break test assert headers.fields == [[b"bar", b""]]
# assert headers.fields == [[b"bar", b""]]
with raises(HttpSyntaxException):
self._read(data)
def test_read_chunked(): def test_read_chunked():
req = treq(content=None) req = treq(content=None)