def test_glyphs_to_xml_with_features(): glyphs = gamera_xml.glyphs_with_features_from_xml("data/testline.xml", feature_functions=features) gamera_xml.glyphs_to_xml("tmp/testline_test2.xml", glyphs, True) assert equal_files("tmp/testline_test2.xml", "data/testline_test2.xml")
def test_glyphs_with_features_from_xml(): glyphs = gamera_xml.glyphs_with_features_from_xml("data/testline.xml", ["area", "aspect_ratio"]) assert len(glyphs) == 66 assert len(glyphs[0].features) == 2
def test_glyphs_with_features_from_xml(): glyphs = gamera_xml.glyphs_with_features_from_xml( "data/testline.xml", ["area", "aspect_ratio"]) assert len(glyphs) == 66 assert len(glyphs[0].features) == 2