예제 #1
0
파일: test_xml.py 프로젝트: DDMAL/Gamera
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")
예제 #2
0
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")
예제 #3
0
파일: test_xml.py 프로젝트: DDMAL/Gamera
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
예제 #4
0
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