Lines Matching refs:assert_raises
90 assert_raises(networkx.NetworkXError, G.add_node, 1)
91 assert_raises(networkx.NetworkXError, G.add_nodes_from, [1])
92 assert_raises(networkx.NetworkXError, G.remove_node, 1)
93 assert_raises(networkx.NetworkXError, G.remove_nodes_from, [1])
94 assert_raises(networkx.NetworkXError, G.add_edge, 1,2)
95 assert_raises(networkx.NetworkXError, G.add_edges_from, [(1,2)])
96 assert_raises(networkx.NetworkXError, G.remove_edge, 1,2)
97 assert_raises(networkx.NetworkXError, G.remove_edges_from, [(1,2)])
98 assert_raises(networkx.NetworkXError, G.clear)
142 assert_raises(networkx.NetworkXError,networkx.info,G,n=-1)