def METHOD_NAME(self, tests=None, continueCheck=None):
    if not tests:
        tests = list(self.selfTests.keys())
    for test in tests:
        try:
            result = self.selfTests[test]()
            self.passed.append(test)
        except Exception as e:
            traceback.print_exc()
            result = "Failed with: %s" % e
            self.failed.append(test)
        self.results[test] = result
        if continueCheck:
            if not continueCheck(self):
                return