def test_is_primitive_when_parent_is_primitive(): typesystem = TypeSystem() typesystem.create_type("test.string", "uima.cas.String") assert typesystem.is_primitive("test.string")
def test_is_primitive(type_name: str, expected: bool): typesystem = TypeSystem() assert typesystem.is_primitive(type_name) is expected