mitmproxy/test/pathod/test_utils.py
Aldo Cortesi 7e6d014f8f tests: pathod/tutils.py -> pathod/tservers.py
And remove all aliases for mitmproxy.test.tutils
2016-11-02 10:06:25 +13:00

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")