updating tests

This commit is contained in:
Frederik Berlaen 2018-01-26 23:27:31 +01:00
parent 4549c6a2d4
commit 4182100744

View File

@ -1252,8 +1252,9 @@ class TestGLIF1(unittest.TestCase):
self.assertRaises(GlifLibError, self.pyToGLIF, py)
self.assertRaises(GlifLibError, self.glifToPy, glif)
def testAnchor_legal_without_name(self):
def testSinglePoint_legal_without_name(self):
# legal
# glif format 1 single point without a name was not an anchor
glif = """
<glyph name="a" format="1">
<outline>
@ -1265,7 +1266,9 @@ class TestGLIF1(unittest.TestCase):
"""
py = """
glyph.name = "a"
glyph.anchors = [{"x" : 1, "y" : 2}]
pointPen.beginPath()
pointPen.addPoint(*[(1, 2)], **{"segmentType" : "move", "smooth" : False})
pointPen.endPath()
"""
resultGlif = self.pyToGLIF(py)
resultPy = self.glifToPy(glif)