method: test.compat.TestCase.assertRaises

*Not documented*
    def assertRaises(self, excclass, func, *args, **kwargs):

origin: test.compat.TestCase

where:

function source:

def assertRaises(self, excclass, func, *args, **kwargs):
    py.test.raises(excclass, func, *args, **kwargs)