module documentation

Undocumented

Function assert_raises Undocumented
Function assert_raises_message Undocumented
Function assert_raises_message_with_given_cause Undocumented
Function assert_raises_message_with_proper_context Undocumented
Function assert_raises_with_given_cause Undocumented
Function assert_raises_with_proper_context Undocumented
Function eq_ Assert a == b, with repr messaging on failure.
Function expect_raises Undocumented
Function expect_raises_message Undocumented
Function expect_raises_message_with_proper_context Undocumented
Function expect_raises_with_proper_context Undocumented
Function in_ Assert a in b, with repr messaging on failure.
Function ne_ Assert a != b, with repr messaging on failure.
Function not_in Assert a in not b, with repr messaging on failure.
Class _ErrorContainer Undocumented
Function _assert_proper_cause_cls assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set.
Function _assert_proper_exception_context assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set.
Function _assert_raises Undocumented
Function _expect_raises Undocumented
def assert_raises(except_cls, callable_, *args, **kw): (source)

Undocumented

def assert_raises_message(except_cls, msg, callable_, *args, **kwargs): (source)

Undocumented

def assert_raises_message_with_given_cause(except_cls, msg, cause_cls, callable_, *args, **kwargs): (source)

Undocumented

def assert_raises_message_with_proper_context(except_cls, msg, callable_, *args, **kwargs): (source)

Undocumented

def assert_raises_with_given_cause(except_cls, cause_cls, callable_, *args, **kw): (source)

Undocumented

def assert_raises_with_proper_context(except_cls, callable_, *args, **kw): (source)

Undocumented

def eq_(a, b, msg=None): (source)

Assert a == b, with repr messaging on failure.

def expect_raises(except_cls, check_context=False): (source)

Undocumented

def expect_raises_message(except_cls, msg, check_context=False): (source)

Undocumented

def expect_raises_message_with_proper_context(except_cls, msg, check_context=True): (source)

Undocumented

def expect_raises_with_proper_context(except_cls, check_context=True): (source)

Undocumented

def in_(a, b, msg=None): (source)

Assert a in b, with repr messaging on failure.

def ne_(a, b, msg=None): (source)

Assert a != b, with repr messaging on failure.

def not_in(a, b, msg=None): (source)

Assert a in not b, with repr messaging on failure.

def _assert_proper_cause_cls(exception, cause_cls): (source)

assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. Python 3 will report nested as exceptions as "during the handling of error X, error Y occurred". That's not what we want to do. We want these exceptions in a cause chain.

def _assert_proper_exception_context(exception): (source)

assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. Python 3 will report nested as exceptions as "during the handling of error X, error Y occurred". That's not what we want to do. We want these exceptions in a cause chain.

def _assert_raises(except_cls, callable_, args, kwargs, msg=None, check_context=False, cause_cls=None): (source)

Undocumented

@contextlib.contextmanager
def _expect_raises(except_cls, msg=None, check_context=False, cause_cls=None): (source)

Undocumented