def METHOD_NAME(self):
    assert _EXTENSION_NAME in reg.get_extension_names()
    try:
        reg.get_extension_class(_EXTENSION_NAME)
    except errors.ExtensionError as exc:
        raise AssertionError(f"Couldn't get extension '{_EXTENSION_NAME}': {exc}")