aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-14 14:58:36 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-14 14:58:36 +0100
commit4767474d4b867f5a85c7ea9ad5b8140a7bfa8b68 (patch)
tree8214328208b2d3973c5615adc05b7a412a0e445d
parent6746cf5f546bedd0486edd23d5253759920e1448 (diff)
downloadmitmproxy-4767474d4b867f5a85c7ea9ad5b8140a7bfa8b68.tar.gz
mitmproxy-4767474d4b867f5a85c7ea9ad5b8140a7bfa8b68.tar.bz2
mitmproxy-4767474d4b867f5a85c7ea9ad5b8140a7bfa8b68.zip
remove noop code
-rw-r--r--test/test_console_help.py16
-rw-r--r--test/test_filt.py2
-rw-r--r--test/test_flow.py1
3 files changed, 0 insertions, 19 deletions
diff --git a/test/test_console_help.py b/test/test_console_help.py
index 42862af7..f1a71faf 100644
--- a/test/test_console_help.py
+++ b/test/test_console_help.py
@@ -6,21 +6,6 @@ if os.name == "nt":
import libmproxy.console.help as help
-class DummyLoop:
-
- def __init__(self):
- self.widget = None
-
-
-class DummyMaster:
-
- def __init__(self):
- self.loop = DummyLoop()
-
- def make_view(self):
- pass
-
-
class TestHelp:
def test_helptext(self):
@@ -28,7 +13,6 @@ class TestHelp:
assert h.helptext()
def test_keypress(self):
- DummyMaster()
h = help.HelpView([1, 2, 3])
assert not h.keypress((0, 0), "q")
assert not h.keypress((0, 0), "?")
diff --git a/test/test_filt.py b/test/test_filt.py
index 49886371..e6873c7d 100644
--- a/test/test_filt.py
+++ b/test/test_filt.py
@@ -209,7 +209,6 @@ class TestMatching:
def test_method(self):
q = self.req()
- self.resp()
assert self.q("~m get", q)
assert not self.q("~m post", q)
@@ -218,7 +217,6 @@ class TestMatching:
def test_domain(self):
q = self.req()
- self.resp()
assert self.q("~d host", q)
assert not self.q("~d none", q)
diff --git a/test/test_flow.py b/test/test_flow.py
index fe2a45bf..b122489f 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -532,7 +532,6 @@ class TestState:
assert c.flow_count() == 2
assert c.active_flow_count() == 1
- HTTPResponse.wrap(netlib.tutils.tresp())
assert not c.update_flow(None)
assert c.active_flow_count() == 1