mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-31 23:38:46 +00:00
17 lines
452 B
Python
17 lines
452 B
Python
from mitmproxy.tools.web import master
|
|
from mitmproxy import proxy
|
|
from mitmproxy import options
|
|
from . import mastertest
|
|
|
|
|
|
class TestWebMaster(mastertest.MasterTest):
|
|
def mkmaster(self, **opts):
|
|
o = options.Options(**opts)
|
|
return master.WebMaster(o, proxy.DummyServer(o))
|
|
|
|
def test_basic(self):
|
|
m = self.mkmaster()
|
|
for i in (1, 2, 3):
|
|
self.dummy_cycle(m, 1, b"")
|
|
assert len(m.view) == i
|