def usageOptions(self): usage_options = None for test_class, test_method in self.testCases: if not usage_options: usage_options = self._parseNetTestOptions(test_class) else: if usage_options != test_class.usageOptions: raise e.IncoherentOptions(usage_options.__name__, test_class.usageOptions.__name__) return usage_options
def checkOptions(self): self.parseLocalOptions() test_options_exc = None usage_options = self._testCases[0][0].usageOptions for test_class, test_methods in self._testCases: try: self._accumulateInputFiles(test_class) self._checkTestClassOptions(test_class) if usage_options != test_class.usageOptions: raise e.IncoherentOptions(usage_options.__name__, test_class.usageOptions.__name__) except Exception as exc: test_options_exc = exc if test_options_exc is not None: raise test_options_exc