map-machine/test/test_text.py
Sergey Vartanov bb70935c19 Change scheme format; support pathlib.
Change name documentation as well.
2021-05-22 01:37:58 +03:00

15 lines
302 B
Python

"""
Test text generation.
"""
from roentgen.text import format_voltage
__author__ = "Sergey Vartanov"
__email__ = "me@enzet.ru"
def test_voltage() -> None:
"""
Test voltage tag value processing.
"""
assert format_voltage("42") == "42 V"
assert format_voltage("42000") == "42 kV"