def test_importTTX(self, testufo): compiler = OutlineTTFCompiler(testufo) otf = compiler.otf = TTFont() compiler.importTTX() assert "CUST" in otf assert otf["CUST"].data == b"\x00\x01\xbe\xef" assert otf.sfntVersion == "\x00\x01\x00\x00"
def test_importTTX(self): compiler = OutlineTTFCompiler(self.ufo) otf = compiler.otf = TTFont() compiler.importTTX() self.assertIn("CUST", otf) self.assertEqual(otf["CUST"].data, b"\x00\x01\xbe\xef") self.assertEqual(otf.sfntVersion, "\x00\x01\x00\x00")