aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-26 20:01:51 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-26 20:01:51 +1200
commit3e158211a830bbcba2dd463189a79ec3ad17c8d4 (patch)
treeb61133ad71a153d77289b408f886de42f79d56b0 /test/test_pathod.py
parentb879890412041e7364a294151a3a8aef5fb62e48 (diff)
downloadmitmproxy-3e158211a830bbcba2dd463189a79ec3ad17c8d4.tar.gz
mitmproxy-3e158211a830bbcba2dd463189a79ec3ad17c8d4.tar.bz2
mitmproxy-3e158211a830bbcba2dd463189a79ec3ad17c8d4.zip
Add a --nohang flag that turns off pauses in response generation.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 036fbf0b..d6e2e886 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -43,6 +43,15 @@ class TestNoApi(tutils.DaemonTests):
assert not "Log" in r.content
+class TestNohang(tutils.DaemonTests):
+ nohang = True
+ def test_nohang(self):
+ r = self.get("200:p0,0")
+ assert r.status_code == 800
+ l = self.d.log()[0]
+ assert "Pauses have been disabled" in l["response"]["error"]
+
+
class CommonTests(tutils.DaemonTests):
def test_sizelimit(self):
r = self.get("200:b@1g")