aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_http.py')
-rw-r--r--test/test_http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_http.py b/test/test_http.py
index 206fc4df..0174a4aa 100644
--- a/test/test_http.py
+++ b/test/test_http.py
@@ -106,6 +106,8 @@ def test_read_http_body():
def test_parse_http_protocol():
assert http.parse_http_protocol("HTTP/1.1") == (1, 1)
assert http.parse_http_protocol("HTTP/0.0") == (0, 0)
+ assert not http.parse_http_protocol("HTTP/a.1")
+ assert not http.parse_http_protocol("HTTP/1.a")
assert not http.parse_http_protocol("foo/0.0")
assert not http.parse_http_protocol("HTTP/x")