blob: f8c7edb789eff9cf491d12eff995d7712bf237b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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()
]
|