All pastes #645496 Raw Edit

Unnamed

public text v1 · immutable
#645496 ·published 2007-08-04 17:44 UTC
rendered paste body
Running tests at level 1
Running unit tests:
  Running:
...

Failure in test Shelf (bookshelf.shelf)
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for bookshelf.shelf.Shelf
  File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 12, in Shelf

----------------------------------------------------------------------
File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 34, in bookshelf.shelf.Shelf
Failed example:
    results = shelf.search('Sprint')
Exception raised:
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest bookshelf.shelf.Shelf[9]>", line 1, in ?
        results = shelf.search('Sprint')
      File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 46, in search
        catalog = getUtility(ICatalog)
      File "/Users/dirceu/devel/buildout-eggs/tmpZWfrhm/zope.component-3.4.0a1-py2.4.egg/zope/component/_api.py", line 207, in getUtility
    ComponentLookupError: (<InterfaceClass zope.app.catalog.interfaces.ICatalog>, '')
----------------------------------------------------------------------
File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 35, in bookshelf.shelf.Shelf
Failed example:
    len(results)
Exception raised:
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest bookshelf.shelf.Shelf[10]>", line 1, in ?
        len(results)
    NameError: name 'results' is not defined
----------------------------------------------------------------------
File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 37, in bookshelf.shelf.Shelf
Failed example:
    results = shelf.search('Foo')
Exception raised:
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest bookshelf.shelf.Shelf[11]>", line 1, in ?
        results = shelf.search('Foo')
      File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 46, in search
        catalog = getUtility(ICatalog)
      File "/Users/dirceu/devel/buildout-eggs/tmpZWfrhm/zope.component-3.4.0a1-py2.4.egg/zope/component/_api.py", line 207, in getUtility
    ComponentLookupError: (<InterfaceClass zope.app.catalog.interfaces.ICatalog>, '')
----------------------------------------------------------------------
File "/Users/dirceu/devel/BookShelf/src/bookshelf/shelf.py", line 38, in bookshelf.shelf.Shelf
Failed example:
    len(results)
Exception raised:
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest bookshelf.shelf.Shelf[12]>", line 1, in ?
        len(results)
    NameError: name 'results' is not defined



  Ran 3 tests with 1 failures and 0 errors in 2.457 seconds.
Running bookshelf.ftests.test_functional.BookShelfFunctionalLayer tests:
  Set up bookshelf.ftests.test_functional.BookShelfFunctionalLayer in 26.382 seconds.
  Running:
..
  Ran 2 tests with 0 failures and 0 errors in 1.986 seconds.
Tearing down left over layers:
  Tear down bookshelf.ftests.test_functional.BookShelfFunctionalLayer ... not supported

Tests with failures:
   Shelf (bookshelf.shelf)
Total: 5 tests, 1 failures, 0 errors in 29.259 seconds.