Ignore:
Timestamp:
20 Jun 2011, 16:42:44 (14 years ago)
Author:
uli
Message:

First real test: can we get a catalog?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/tests/test_catalog.py

    r6430 r6431  
    2525from zope.app.testing.functional import (
    2626    FunctionalTestCase, FunctionalTestSetup, getRootFolder)
     27from zope.catalog.interfaces import ICatalog
     28from zope.component import queryUtility
    2729from zope.component.hooks import setSite, clearSite
    2830from waeup.sirp.app import University
     
    6870        return
    6971
    70     def test_blah(self):
    71         assert 1 == 0
     72    def test_get_catalog(self):
     73        # We can get an accesscodes catalog if we wish
     74        cat = queryUtility(ICatalog, name='accesscodes_catalog')
     75        assert cat is not None
Note: See TracChangeset for help on using the changeset viewer.