Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
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))