blob: 2debaff5ed643641dc44d70e7c7f4bc21e15a970 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from mitmproxy.addons import termstatus
from mitmproxy.test import taddons
def test_configure():
ts = termstatus.TermStatus()
with taddons.context() as ctx:
ctx.configure(ts, server=False)
ts.running()
assert not ctx.master.logs
ctx.configure(ts, server=True)
ts.running()
assert ctx.master.logs
|