def __call__(self, result=None):
        if result is None:
            result = self.defaultTestResult()
        result.startTest(self)
        if hasattr(self, '_testMethodName'):
            # 2.5 + ?
            testMethod = getattr(self, self._testMethodName)
        elif hasattr(self, '_TestCase__testMethodName'):
            # 2.4
            testMethod = getattr(self, self._TestCase__testMethodName)
        else:
            raise AttributeError(self % "Not sure how to get the test method in %s")
        try:
            try:
                self.setUp()
            except (KeyboardInterrupt, SystemExit):
                raise
            except:
                result.addError(self, self._TestCase__exc_info())
                return
            
            ok = 0
            try:
                testMethod()
                ok = 1
            except self.failureException:
                result.addFailure(self, self._TestCase__exc_info())
            except (KeyboardInterrupt, SystemExit):
                raise
            except:
                result.addError(self, self._TestCase__exc_info())
            
            try:
                self.tearDown()
            except (KeyboardInterrupt, SystemExit):
                raise
            except:
                result.addError(self, self._TestCase__exc_info())
                ok = 0
            if ok:
                result.addSuccess(self)
        finally:
            result.stopTest(self)
dataset/ETHPy150Open wesabe/fixofx/3rdparty/wsgi_intercept/webtest_intercept/webtest.py/WebCase.__call__/swapped operands of `%`