def METHOD_NAME(self):
    for fmt in [2, 4, 12]:
        subtable = self.makeSubtable(fmt, 1, 3, 0)
        subtable.cmap = {0x0041: "gid001", 0x0042: "gid002"}
        font = ttLib.TTFont()
        font.setGlyphOrder([".notdef"])
        data = subtable.compile(font)