def fail(self):
if not self._fail:<EOL><INDENT>_logger.error("<STR_LIT>", self.name)<EOL><DEDENT>self._metric_fail.value = <NUM_LIT:1><EOL>self.valid = False<EOL>self._fail = True<EOL>if (ec.is_standalone()):<EOL><INDENT>global _STANDALONE_FAILED<EOL>_STANDALONE_FAILED = True<EOL>raise AssertionError("<STR_LIT>".format(self.name))<EOL><DEDENT>
Fail the condition.

        Marks the condition as failed. Once a condition has failed it
        can never become valid, the test that uses the condition will fail.