Lines Matching refs:assert_raises
11 assert_raises((KeyError,networkx.NetworkXError), G.edges,-1)
18 assert_raises((KeyError,networkx.NetworkXError), G.neighbors,-1)
35 assert_raises((KeyError,networkx.NetworkXError), G.out_edges,-1)
52 assert_raises((KeyError,networkx.NetworkXError), G.in_edges,-1)
118 assert_raises((KeyError,networkx.NetworkXError), G.successors,-1)
123 assert_raises((KeyError,networkx.NetworkXError), G.successors_iter,-1)
133 assert_raises((KeyError,networkx.NetworkXError), G.predecessors,-1)
138 assert_raises((KeyError,networkx.NetworkXError), G.predecessors_iter,-1)
147 assert_raises((KeyError,networkx.NetworkXError), G.degree,-1)
165 assert_raises((KeyError,networkx.NetworkXError), G.in_degree,-1)
180 assert_raises((KeyError,networkx.NetworkXError), G.out_degree,-1)
276 assert_raises(networkx.NetworkXError, G.add_edges_from,[(0,)]) # too few in tuple
277 assert_raises(networkx.NetworkXError, G.add_edges_from,[(0,1,2,3,4)]) # too many in tuple
278 assert_raises(TypeError, G.add_edges_from,[0]) # not a tuple
289 assert_raises((KeyError,networkx.NetworkXError), G.remove_edge,-1,0)
290 assert_raises((KeyError,networkx.NetworkXError), G.remove_edge,0,2,
316 assert_raises((KeyError,networkx.NetworkXError), G.remove_edge,-1,0)