Changeset 9798


Ignore:
Timestamp:
14 Dec 2012, 13:28:49 (12 years ago)
Author:
uli
Message:

Make sure we can search for current_mode in student catalogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_catalog.py

    r9736 r9798  
    155155        return
    156156
     157    def test_search_by_mode(self):
     158        # We can find a student in a certain mode
     159        cat = queryUtility(ICatalog, name='students_catalog')
     160        results = cat.searchResults(current_mode=('ug_ft', 'ug_ft'))
     161        results = [x for x in results] # Turn results generator into list
     162        assert len(results) == 1
     163        assert results[0] is self.app['students'][self.student_id]
     164        return
     165
     166
    157167class CourseTicketCatalogTests(CatalogTestSetup):
    158168
Note: See TracChangeset for help on using the changeset viewer.