# HG changeset patch # User Jeff Hammel # Date 1355546861 28800 # Node ID 52dedd2a8ffb165183c79b2f73506af12223b15c # Parent 16673636dcb6b9668e4f707bf021437c51d4e3bf add some more tests diff -r 16673636dcb6 -r 52dedd2a8ffb tests/doctest.txt --- a/tests/doctest.txt Thu Dec 13 19:06:00 2012 -0800 +++ b/tests/doctest.txt Fri Dec 14 20:47:41 2012 -0800 @@ -37,6 +37,8 @@ >>> graph.edge('A', 'B', dict(foo='bar')) >>> 'A' in graph True + >>> graph['A'] == nodeA + True >>> ['A', 'B'] in graph True >>> graph[('A', 'C')] = {'why': "this will add 'C' to the graph"} @@ -44,3 +46,5 @@ True >>> graph['C'] {} + >>> sorted(graph.nodes()) + ['A', 'B', 'C']