Lines Matching refs:assert_raises
46 assert_raises((KeyError,networkx.NetworkXError), G.neighbors,-1)
51 assert_raises((KeyError,networkx.NetworkXError), G.neighbors_iter,-1)
57 assert_raises((KeyError,networkx.NetworkXError), G.edges,-1)
64 assert_raises((KeyError,networkx.NetworkXError), f, -1)
76 assert_raises((KeyError,networkx.NetworkXError), G.degree,-1)
156 assert_raises(networkx.NetworkXError,list,bunch)
160 assert_raises(networkx.NetworkXError,list,bunch)
211 assert_raises(networkx.NetworkXError,G.add_edge,0,1,attr_dict=[])
402 assert_raises(networkx.NetworkXError,G.add_edges_from,edges,
479 assert_raises(KeyError, G.__getitem__, 'j')
480 assert_raises((TypeError,networkx.NetworkXError), G.__getitem__, ['A'])
490 assert_raises(networkx.NetworkXError, G.add_node, 4, [])
491 assert_raises(networkx.NetworkXError, G.add_node, 4, 4)
535 assert_raises((KeyError,networkx.NetworkXError), G.remove_node,-1)
565 assert_raises(networkx.NetworkXError,
567 assert_raises(networkx.NetworkXError,
569 assert_raises(TypeError, G.add_edges_from,[0]) # not a tuple
576 assert_raises((KeyError,networkx.NetworkXError), G.remove_edge,-1,0)
593 assert_raises((KeyError,networkx.NetworkXError), G.edges,-1)