mitmproxy/test/test_utils.py
2012-04-29 12:05:38 +12:00

15 lines
385 B
Python

import libpry
from libpathod import utils
class uparse_anchor_spec(libpry.AutoTree):
def test_simple(self):
assert utils.parse_anchor_spec("foo=200", {}) == ("foo", "200")
libpry.raises(utils.AnchorError, utils.parse_anchor_spec, "*=200", {})
libpry.raises(utils.AnchorError, utils.parse_anchor_spec, "foo=bar", {})
tests = [
uparse_anchor_spec()
]