MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / assertRaises

Method assertRaises

Lib/unittest/case.py:448–475  ·  view source on GitHub ↗

Fail unless an exception of class excClass is raised by callableObj when invoked with arguments args and keyword arguments kwargs. If a different type of exception is raised, it will not be caught, and the test case will be deemed to have suffered an error

(self, excClass, callableObj=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

test_simpleMethod · 0.95
test_chararrayMethod · 0.95
test_structMethod · 0.95
test_set_boundaryMethod · 0.80
test_set_typeMethod · 0.80
test_replace_headerMethod · 0.80
test_type_errorMethod · 0.80
test_bad_multipartMethod · 0.80

Calls 1

Tested by 15

test_simpleMethod · 0.76
test_chararrayMethod · 0.76
test_structMethod · 0.76
test_set_boundaryMethod · 0.64
test_set_typeMethod · 0.64
test_replace_headerMethod · 0.64
test_type_errorMethod · 0.64
test_bad_multipartMethod · 0.64