def verify(self):
        for key, value in KEYWORDS.items():
            if value: # mandatory keyword
                if key not in self._keywords:
                    raise ValueError, "%s: mandatory keyword '%s' not present" % (self.__class__.__name__, key,)
        try:
            bs = self._keywords["bug_severity"]
        except __HOLE__:
            pass
        else:
            if bs not in SEVERITY_VALUES:
                raise ValueError, "%s: invalid severity '%s'" % (self.__class__.__name__, bs,)
        try:
            pv = self._keywords["priority"]
        except KeyError:
            pass
        else:
            if pv not in PRIORITY_VALUES:
                raise ValueError, "%s: invalid priority '%s'" % (self.__class__.__name__, pv,)
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/bugzillaclient.py/BugzillaBody.verify