Mercurial > hg > WSGraph
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 33:c880cf90f01d | 34:16673636dcb6 |
|---|---|
| 35 >>> nodeA = {'hello': "is it me you're looking for?"} | 35 >>> nodeA = {'hello': "is it me you're looking for?"} |
| 36 >>> graph['A'] = nodeA | 36 >>> graph['A'] = nodeA |
| 37 >>> graph.edge('A', 'B', dict(foo='bar')) | 37 >>> graph.edge('A', 'B', dict(foo='bar')) |
| 38 >>> 'A' in graph | 38 >>> 'A' in graph |
| 39 True | 39 True |
| 40 >>> ['A', 'B'] in graph | |
| 41 True | |
| 42 >>> graph[('A', 'C')] = {'why': "this will add 'C' to the graph"} | |
| 43 >>> 'C' in graph | |
| 44 True | |
| 45 >>> graph['C'] | |
| 46 {} |
