diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-04 20:36:50 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-04 20:36:50 +1200 |
commit | 07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb (patch) | |
tree | 3a27d3c3e0b4985368fcd3a8153924c497162fbd /test/test_pathod.py | |
parent | 182b79ab9ec3f59e17536b135e90eaa91e577111 (diff) | |
download | mitmproxy-07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb.tar.gz mitmproxy-07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb.tar.bz2 mitmproxy-07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb.zip |
Shore up test suite.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 2adcae40..f27f4d38 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -109,6 +109,15 @@ class TestHexdump(tutils.DaemonTests): r = self.get(r"200:b'\xf0'") +class TestNocraft(tutils.DaemonTests): + nocraft = True + + def test_nocraft(self): + r = self.get(r"200:b'\xf0'") + assert r.status_code == 800 + assert "Crafting disabled" in r.content + + class CommonTests(tutils.DaemonTests): def test_binarydata(self): r = self.get(r"200:b'\xf0'") |