Ignore:
Timestamp:
10 Dec 2012, 06:46:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Add suspended students search.

File:
1 edited

Legend:

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

    r9770 r9795  
    368368        self.assertTrue('Anna Tester' in self.browser.contents)
    369369        # The old searchterm will be used again
     370        self.browser.getControl("Search").click()
     371        self.assertTrue('Anna Tester' in self.browser.contents)
     372
     373        # We can find suspended students
     374        self.student.suspended = True
     375        notify(grok.ObjectModifiedEvent(self.student))
     376        self.browser.open(self.manage_container_path)
     377        self.browser.getControl(name="searchtype").value = ['suspended']
     378        self.browser.getControl("Search").click()
     379        self.assertTrue('Anna Tester' in self.browser.contents)
     380        self.browser.open(self.container_path)
     381        self.browser.getControl(name="searchtype").value = ['suspended']
    370382        self.browser.getControl("Search").click()
    371383        self.assertTrue('Anna Tester' in self.browser.contents)
     
    845857        logcontent = open(logfile).read()
    846858        self.assertTrue(
    847             '"zope.mgr",K1000000,%s,schoolfee,40000.0,AP,,,,,,,,,,,,\n' % value
     859            '"zope.mgr",K1000000,%s,schoolfee,40000.0,AP,,,,,,\n' % value
    848860            in logcontent)
    849861
Note: See TracChangeset for help on using the changeset viewer.