aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_status_codes.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-28 13:53:59 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-28 13:53:59 +0200
commit67229fbdf7be2f3bb591a9da77f75c05ed0ab269 (patch)
treeaa94ff2eacbe2c5d46dbad3f41c9ca2eae849f73 /test/http/test_status_codes.py
parent5261bcdf4b0976b8db3295292143282b34f10c51 (diff)
parent23d13e4c1282bc46c54222479c3b83032dad3335 (diff)
downloadmitmproxy-67229fbdf7be2f3bb591a9da77f75c05ed0ab269.tar.gz
mitmproxy-67229fbdf7be2f3bb591a9da77f75c05ed0ab269.tar.bz2
mitmproxy-67229fbdf7be2f3bb591a9da77f75c05ed0ab269.zip
Merge branch 'http-models'
Diffstat (limited to 'test/http/test_status_codes.py')
-rw-r--r--test/http/test_status_codes.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/http/test_status_codes.py b/test/http/test_status_codes.py
new file mode 100644
index 00000000..9fea6b70
--- /dev/null
+++ b/test/http/test_status_codes.py
@@ -0,0 +1,6 @@
+from netlib.http import status_codes
+
+
+def test_simple():
+ assert status_codes.IM_A_TEAPOT == 418
+ assert status_codes.RESPONSES[418] == "I'm a teapot"