Ignore:
Timestamp:
6 Apr 2012, 16:01:57 (13 years ago)
Author:
Henrik Bettermann
Message:

Derive IPGApplicant and IUGApplicant from IApplicantBaseData and not from IApplicant. We'll need this for the customized exporter.

File:
1 edited

Legend:

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

    r8020 r8053  
    127127        self.browser.open(ugapplicant_path + '/manage')
    128128        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     129        # We can save the applicant
     130        self.browser.getControl(name="form.reg_number").value = '1234'
     131        self.browser.getControl(name="form.firstname").value = 'John'
     132        self.browser.getControl(name="form.lastname").value = 'Tester'
     133        self.browser.getControl(name="form.course1").value = ['CERT1']
     134        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
     135        self.browser.getControl(name="form.lga").value = ['foreigner']
     136        self.browser.getControl(name="form.sex").value = ['m']
     137        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
     138        self.browser.getControl("Save").click()
     139        self.assertMatches('...Form has been saved...', self.browser.contents)
    129140        self.assertFalse('Employer' in self.browser.contents)
    130141        self.browser.open(ugapplicant_path + '/edit')
Note: See TracChangeset for help on using the changeset viewer.