diff tests/doctest.txt @ 34:16673636dcb6

wow, testing is fun!
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 13 Dec 2012 19:06:00 -0800
parents 943a4b7097af
children 52dedd2a8ffb
line wrap: on
line diff
--- a/tests/doctest.txt	Thu Dec 13 19:00:30 2012 -0800
+++ b/tests/doctest.txt	Thu Dec 13 19:06:00 2012 -0800
@@ -37,3 +37,10 @@
     >>> graph.edge('A', 'B', dict(foo='bar'))
     >>> 'A' in graph
     True
+    >>> ['A', 'B'] in graph
+    True
+    >>> graph[('A', 'C')] =  {'why': "this will add 'C' to the graph"}
+    >>> 'C' in graph
+    True
+    >>> graph['C']
+    {}