'verify that flag is defined.'

def _validate_flag(self, flags):

    if flags:
        for f in self._as_one_list(flags):
            if (not (f in self.debug_flags)):
                msg2 = ('%s' % f)
                raise 'Invalid    debugflag    given', msg2
