def METHOD_NAME(self):
    layer = self.getLayer_glyphs()
    try:
        layer.selected = False
    except NotImplementedError:
        return
    glyph1 = layer["A"]
    glyph2 = layer["B"]
    glyph1.selected = True
    glyph2.selected = True
    self.assertEqual(
        tuple(sorted(layer.selectedGlyphs, key=lambda glyph: glyph.name)),
        (glyph1, glyph2)
    )