raises#

pybrops.test.assert_python.raises(*ExpectedExceptions)[source]#

Ensure that a function raises an expected exception or one of an expected set of exceptions.

Parameters:

ExpectedExceptions (tuple) – A tuple of expected exception(s).

Return type:

Generator