Ignore:
Timestamp:
23 Apr 2013, 11:49:18 (12 years ago)
Author:
Henrik Bettermann
Message:

Add hidden field to IApplicantsContainer and hide applicants containers if attribute is set True.

File:
1 edited

Legend:

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

    r10095 r10097  
    218218        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    219219        self.assertEqual(self.browser.url, self.manage_root_path)
     220        return
     221
     222    def test_hide_container(self):
     223        self.browser.open(self.root_path)
     224        self.assertFalse(
     225            '<a href="http://localhost/app/applicants/app2011">'
     226            'This is the app2011 container</a>' in self.browser.contents)
     227        self.app['applicants']['app2011'].hidden = False
     228        self.browser.open(self.root_path)
     229        self.assertTrue(
     230            '<a href="http://localhost/app/applicants/app2011">'
     231            'This is the app2011 container</a>' in self.browser.contents)
    220232        return
    221233
Note: See TracChangeset for help on using the changeset viewer.