1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 22:31:31 +03:00
fonts/axisregistry/tests/test_axisregistry_api.py

15 lines
494 B
Python
Raw Normal View History

from axisregistry import AxisRegistry
def test_AxisRegistry():
registry = AxisRegistry()
assert "GRAD" in registry.keys()
for axis_tag in registry.keys():
assert len(axis_tag) == 4
for f in range(len(registry[axis_tag].fallback)):
fallback = registry[axis_tag].fallback[f]
# fallback names should not be space-separated.
# (see: https://github.com/googlefonts/axisregistry/issues/7)
assert " " not in fallback.name