raises(*args)
The decorated test function must raise one of the passed exceptions to pass. If you want to test many assertions about exceptions in a single test, you may want to use assert_raises
instead.
This decorator is nose specific, do not use it if you are using a different test framework.
The test passes if any of the passed exceptions is raised.
Decorator to check for raised exceptions.
@raises(TypeError, ValueError) def test_raises_type_error(): raise TypeError("This test passes")
See :@raises(Exception) def test_that_fails_by_passing(): pass
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them