def __getitem__(self, key):
    'Expose and control access to the local namespaces.\n\n            Variables may only be retrieved if their value has been previously\n            set. Accessing a parameter in the class body is disallowed (the\n            actual test parameter is set during the class instantiation).\n            '
    try:
        return super().__getitem__(key)
    except KeyError as err:
        try:
            return self['_rfm_local_var_space'][key]
        except KeyError:
            if (key in self['_rfm_local_param_space']):
                raise ReframeSyntaxError('accessing a test parameter from the class body is disallowed') from None
            else:
                for b in self['_rfm_bases']:
                    if (key in b._rfm_var_space):
                        v = b._rfm_var_space[key].default_value
                        self._namespace[key] = v
                        return self._namespace[key]
                raise err from None
Expose and control access to the local namespaces.

Variables may only be retrieved if their value has been previously
set. Accessing a parameter in the class body is disallowed (the
actual test parameter is set during the class instantiation).
def __getitem__(self, key):
    'Expose and control access to the local namespaces.\n\n            Variables may only be retrieved if their value has been previously\n            set. Accessing a parameter in the class body is disallowed (the\n            actual test parameter is set during the class instantiation).\n            '
    try:
        return super().__getitem__(key)
    except KeyError as err:
        try:
            return self['_rfm_local_var_space'][key]
        except KeyError:
            if (key in self['_rfm_local_param_space']):
                raise ReframeSyntaxError('accessing a test parameter from the class body is disallowed') from None
            else:
                for b in self['_rfm_bases']:
                    if (key in b._rfm_var_space):
                        v = b._rfm_var_space[key].default_value
                        self._namespace[key] = v
                        return self._namespace[key]
                raise err from None