Changeset 9559


Ignore:
Timestamp:
6 Nov 2012, 11:45:38 (12 years ago)
Author:
Henrik Bettermann
Message:

Check if students can't edit the personal_update date.

File:
1 edited

Legend:

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

    r9543 r9559  
    484484        self.assertEqual(self.browser.url, self.manage_personal_path)
    485485        self.browser.open(self.personal_path)
     486        self.assertTrue('Updated' in self.browser.contents)
    486487        self.browser.getLink("Edit").click()
    487488        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     
    24332434        self.assertTrue(
    24342435            'You logged in' in self.browser.contents)
     2436        # Students don't see personal_updated field in edit form
     2437        self.browser.open(self.edit_personal_path)
     2438        self.assertFalse('Updated' in self.browser.contents)
     2439        self.browser.open(self.personal_path)
     2440        self.assertTrue('Updated' in self.browser.contents)
    24352441        self.browser.getLink("Logout").click()
    24362442        delta = timedelta(days=181)
Note: See TracChangeset for help on using the changeset viewer.