map-machine/tests/test_scheme.py
2021-12-05 15:33:22 +03:00

19 lines
393 B
Python

"""
Test scheme parsing.
"""
from map_machine.scheme import Scheme
def test_verification() -> None:
assert (
Scheme({"node_icons": [{"tags": [{"tags": {"a": "b"}}]}]})
.node_matchers[0]
.verify()
is True
)
assert (
Scheme({"node_icons": [{"tags": [{"tags": {"a": 0}}]}]})
.node_matchers[0]
.verify()
is False
)