fix console test

This commit is contained in:
Thomas Kriechbaumer 2017-02-02 10:13:12 +01:00
parent 2606de25e4
commit 3ae060f0d3

View File

@ -40,7 +40,7 @@ class TestMaster(mastertest.MasterTest):
m = self.mkmaster()
f = tflow.tflow(resp=True)
m.run_script_once("nonexistent", [f])
assert "Input error" in str(m.logbuffer[0])
assert any("Input error" in str(l) for l in m.logbuffer)
def test_intercept(self):
"""regression test for https://github.com/mitmproxy/mitmproxy/issues/1605"""