Changeset 9304


Ignore:
Timestamp:
6 Oct 2012, 17:27:48 (12 years ago)
Author:
Henrik Bettermann
Message:

Add test for previous revision.

File:
1 edited

Legend:

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

    r9283 r9304  
    11631163        # Students can access their own objects
    11641164        # and can perform actions
     1165        # Student cant login if their password is not set
     1166        self.student.password = None
     1167        self.browser.open(self.login_path)
     1168        self.browser.getControl(name="form.login").value = self.student_id
     1169        self.browser.getControl(name="form.password").value = 'spwd'
     1170        self.browser.getControl("Login").click()
     1171        self.assertTrue(
     1172            'You entered invalid credentials.' in self.browser.contents)
     1173        import pdb; pdb.set_trace()
     1174        # We set the password again.
     1175        IUserAccount(
     1176            self.app['students'][self.student_id]).setPassword('spwd')
    11651177        IWorkflowInfo(self.student).fireTransition('admit')
    11661178        # Students can't login if their account is suspended/deactivated
Note: See TracChangeset for help on using the changeset viewer.