def check_prerequisites(self, currententry, upto):
        """Verify that the prerequisite test passed.

        Verify any prerequisites are met at run time.
        """
        for prereq in currententry.prerequisites:
            for entry in self._tests[:upto]:
                if entry.match_prerequisite(prereq):
                    if entry.result.is_passed():
                        continue
                    else:
                        self.report.add_heading(currententry.inst.test_name, 2)
                        self.report.diagnostic("Prerequisite: %s" % (prereq,), 2)
                        self.report.incomplete("Prerequisite did not pass.", 2)
                        currententry.result = TestResult(constants.INCOMPLETE)
                        return False
        return True # No prerequisite or prereq passed.
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/core.py/TestSuite.check_prerequisites/original