[Checkins] SVN: Sandbox/luciano/kirbi/src/kirbi/tests/test_pac.txt
added grok call, event test still broken
Luciano Ramalho
luciano at ramalho.org
Tue Jul 31 11:39:29 EDT 2007
Log message for revision 78503:
added grok call, event test still broken
Changed:
U Sandbox/luciano/kirbi/src/kirbi/tests/test_pac.txt
-=-
Modified: Sandbox/luciano/kirbi/src/kirbi/tests/test_pac.txt
===================================================================
--- Sandbox/luciano/kirbi/src/kirbi/tests/test_pac.txt 2007-07-31 05:20:44 UTC (rev 78502)
+++ Sandbox/luciano/kirbi/src/kirbi/tests/test_pac.txt 2007-07-31 15:39:27 UTC (rev 78503)
@@ -5,16 +5,21 @@
A Pac is designed to store book records. Let's create one and put a few
books in it::
+ >>> import grok
+ >>> grok.grok('kirbi')
>>> from kirbi.pac import Pac
>>> from kirbi.book import Book
>>> pac = Pac()
>>> pac.addBook(Book(u'Zero'))
+ 'k0001'
>>> pac.addBook(Book(isbn13='978-0670030583'))
+ '9780670030583'
>>> pac.addBook(Book(u'A Tale of Two Cities', isbn13='978-0141439600'))
+ '9780141439600'
>>> sorted(pac)
- ['9780141439600', '9780670030583', 'k0001']
+ [u'9780141439600', u'9780670030583', u'k0001']
-One of the books does has ISBN but no Title, so it's put in the fetch queue::
+One of the books has ISBN but no Title, so it's put in the fetch queue::
- >>> len(pac)
- 3
+ >>> pac.pending_isbns
+ ['9780670030583']
More information about the Checkins
mailing list