Ignore:
Timestamp:
9 Sep 2011, 06:03:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Add clearance_locked attribute and set True when a student is added.

Add clearance edit page for students.

Shorten page template names.

Rename Edit buttons for officers. Officers are managing and students are editing objects.

File:
1 edited

Legend:

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

    r6694 r6695  
    199199        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    200200        self.assertEqual(self.browser.url, self.student_path)
    201         self.browser.getLink("Edit").click()
     201        self.browser.getLink("Manage").click()
    202202        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    203203        self.assertEqual(self.browser.url, self.manage_student_path)
     
    213213        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    214214        self.assertEqual(self.browser.url, self.clearance_student_path)
    215         self.browser.getLink("Edit").click()
     215        self.browser.getLink("Manage").click()
    216216        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    217217        self.assertEqual(self.browser.url, self.edit_clearance_student_path)
     
    221221        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    222222        self.assertEqual(self.browser.url, self.personal_student_path)
    223         self.browser.getLink("Edit").click()
     223        self.browser.getLink("Manage").click()
    224224        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    225225        self.assertEqual(self.browser.url, self.edit_personal_student_path)
     
    229229        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    230230        self.assertEqual(self.browser.url, self.studycourse_student_path)
    231         self.browser.getLink("Edit").click()
    232         self.assertTrue('Edit study course' in self.browser.contents)
     231        self.browser.getLink("Manage").click()
     232        self.assertTrue('Manage study course' in self.browser.contents)
    233233
    234234        self.browser.open(self.student_path)
     
    274274        # We can login again with the new password
    275275        self.browser.getLink("Login").click()
    276         #self.browser.open(self.login_path)
     276        self.browser.open(self.login_path)
    277277        self.browser.getControl(name="form.login").value = self.test_student_id
    278278        self.browser.getControl(name="form.password").value = 'new_password'
     
    280280        self.assertEqual(self.browser.url, self.student_path)
    281281        self.assertTrue('You logged in' in self.browser.contents)
    282         return
     282
     283        return
Note: See TracChangeset for help on using the changeset viewer.