aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/addons/test_termstatus.py
blob: 01c14814d0ad9502aa6a0e054f7b02d45779f9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from mitmproxy.addons import termstatus
from mitmproxy.test import taddons


def test_configure():
    ts = termstatus.TermStatus()
    with taddons.context() as ctx:
        ts.running()
        assert not ctx.master.event_log
        ctx.configure(ts, server=True)
        ts.running()
        assert ctx.master.event_log