def METHOD_NAME(self):
    pen = _TestPen()
    with CapturingLogHandler(pen.log, "WARNING") as captor:
        pen.addComponent("nonexistent", (1, 0, 0, 1, 0, 0))
    captor.assertRegex("glyph '.*' is missing from glyphSet; skipped")