papis-extract/tests/test_annotation.py

7 lines
205 B
Python
Raw Normal View History

2023-08-29 08:40:40 +00:00
from papis_extract.annotation_data import Annotation
def test_colorname_exact():
sut = Annotation("testfile", colors={"stroke": (1.0, 0.0, 0.0)})
c_name = sut.colorname
assert c_name == "red"