(self)
| 44 | assert sorted(G.nodes(data=True)) == [(0, {}), (1, {}), (2, {})] |
| 45 | |
| 46 | def test_none_node(self): |
| 47 | G = self.Graph() |
| 48 | with pytest.raises(ValueError): |
| 49 | G.add_node(None) |
| 50 | with pytest.raises(ValueError): |
| 51 | G.add_nodes_from([None]) |
| 52 | with pytest.raises(ValueError): |
| 53 | G.add_edge(0, None) |
| 54 | with pytest.raises(ValueError): |
| 55 | G.add_edges_from([(0, None)]) |
| 56 | |
| 57 | def test_has_node(self): |
| 58 | G = self.K3 |
nothing calls this directly
no test coverage detected