map-machine/tests/test_scheme.py
2022-01-15 12:51:56 +03:00

29 lines
599 B
Python

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