def setUpDecorator(self): for v in self.td_depends: try: value = self.case.td[v] except KeyError: raise OEQAMissingVariable("Test case need %s variable but"\ " isn't into td" % v)
def _validate_td_vars(td, td_vars, type_msg): if td_vars: for v in td_vars: if not v in td: raise OEQAMissingVariable("Test %s need %s variable but"\ " isn't into td" % (type_msg, v))