mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-30 10:47:29 +02:00
29 lines
599 B
Python
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
|
|
)
|