diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_console_help.py | 16 | ||||
-rw-r--r-- | test/test_filt.py | 2 | ||||
-rw-r--r-- | test/test_flow.py | 1 |
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 |