changeset 35:52dedd2a8ffb

add some more tests
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 14 Dec 2012 20:47:41 -0800
parents 16673636dcb6
children 5ea58a6ea820
files tests/doctest.txt
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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']