mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
7e6d014f8f
And remove all aliases for mitmproxy.test.tutils
17 lines
283 B
Python
17 lines
283 B
Python
from pathod import utils
|
|
|
|
from mitmproxy.test import tutils
|
|
|
|
|
|
def test_membool():
|
|
m = utils.MemBool()
|
|
assert not m.v
|
|
assert m(1)
|
|
assert m.v == 1
|
|
assert m(2)
|
|
assert m.v == 2
|
|
|
|
|
|
def test_data_path():
|
|
tutils.raises(ValueError, utils.data.path, "nonexistent")
|