def check_not_valid(self, *, term: Term): failed = False try: term.validate() except Exception: failed = True self.assertTrue(failed)
def check_valid(term: Term): term.validate()