blob: 98f53c93968809923835bb696e3f2d6a383ed9b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from mitmproxy.web import master
from . import mastertest
class TestWebMaster(mastertest.MasterTest):
def mkmaster(self, filt, **options):
o = master.Options(
filtstr=filt,
**options
)
return master.WebMaster(None, o)
def test_basic(self):
m = self.mkmaster(None)
for i in (1, 2, 3):
self.dummy_cycle(m, 1, "")
assert len(m.state.flows) == i
|