remove noop code

This commit is contained in:
Thomas Kriechbaumer 2016-02-14 14:58:36 +01:00
parent 6746cf5f54
commit 4767474d4b
3 changed files with 0 additions and 19 deletions

View File

@ -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), "?")

View File

@ -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)

View File

@ -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