def assertRaises(self, exception, method, args=None, kwargs=None, msg=None):
        """Assert that a method and the given args will raise the given
        exception.

        Args:
            exception: The exception class the method should raise.
            method:    the method to call with the given arguments.
            args: a tuple of positional arguments.
            kwargs: a dictionary of keyword arguments
            msg: optional message string to be used if assertion fails.
        """
        args = args or ()
        kwargs = kwargs or {}
        try:
            rv = method(*args, **kwargs)
        except exception:
            return
        # it might raise another exception, which is marked INCOMPLETE
        raise TestFailError, msg or (method, exception) % "%r did not raise %r."

    # some logical aliases
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/core.py/Test.assertRaises/swapped operands of `%`