<s> from nose . tools import raises <EOL> import networkx as nx <EOL> @ raises ( nx . NetworkXException ) <EOL> def test_raises_networkxexception ( ) : <EOL> raise nx . NetworkXException <EOL> @ raises ( nx . NetworkXError ) <EOL> def test_raises_networkxerr ( ) : <EOL> raise nx . NetworkXError <EOL> @ raises ( nx . NetworkXPointlessConcept ) <EOL> def test_raises_networkx_pointless_concept ( ) : <EOL> raise nx . NetworkXPointlessConcept <EOL> @ raises ( nx . NetworkXAlgorithmError ) <EOL> def test_raises_networkxalgorithmerr ( ) : <EOL> raise nx . NetworkXAlgorithmError <EOL> @ raises ( nx . NetworkXUnfeasible ) <EOL> def test_raises_networkx_unfeasible ( ) : <EOL> raise nx . NetworkXUnfeasible <EOL> @ raises ( nx . NetworkXNoPath ) <EOL> def test_raises_networkx_no_path ( ) : <EOL> raise nx . NetworkXNoPath <EOL> @ raises ( nx . NetworkXUnbounded ) <EOL> def test_raises_networkx_unbounded ( ) : <EOL> raise nx . NetworkXUnbounded </s>
