Changeset 9544


Ignore:
Timestamp:
5 Nov 2012, 18:38:47 (12 years ago)
Author:
Henrik Bettermann
Message:

Copy also middlename.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
3 edited

Legend:

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

    r9480 r9544  
    5555
    5656    create_names = [
    57         'firstname', 'lastname',
     57        'firstname', 'middlename', 'lastname',
    5858        'sex', 'date_of_birth',
    5959        'email', 'phone'
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py

    r9398 r9544  
    9494        self.assertEqual(student.email, 'xx@yy.zz')
    9595        self.assertEqual(student.firstname, 'John')
     96        self.assertEqual(student.middlename, 'Anthony')
    9697        self.assertEqual(student.lastname, 'Tester')
    9798        # student_id set in application record?
     
    122123        self.browser.getControl(name="searchterm").value = 'dep1'
    123124        self.browser.getControl("Search").click()
    124         self.assertMatches('...John Tester...', self.browser.contents)
     125        self.assertMatches('...John Anthony Tester...', self.browser.contents)
    125126        # Has the student studycourse the correct attributes?
    126127        self.assertEqual(student['studycourse'].certificate.code, 'CERT1')
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r9531 r9544  
    167167        # Fill the edit form with suitable values
    168168        self.browser.getControl(name="form.firstname").value = 'John'
     169        self.browser.getControl(name="form.middlename").value = 'Anthony'
    169170        self.browser.getControl(name="form.lastname").value = 'Tester'
    170171        self.browser.getControl(name="form.course1").value = ['CERT1']
     
    236237        self.browser.getControl(name="searchterm").value = 'John'
    237238        self.browser.getControl("Search").click()
    238         self.assertTrue('John Tester' in self.browser.contents)
     239        self.assertTrue('John Anthony Tester' in self.browser.contents)
    239240        self.browser.getControl(name="searchtype").value = ['fullname']
    240241        self.browser.getControl(name="searchterm").value = 'Tester'
    241242        self.browser.getControl("Search").click()
    242         self.assertTrue('John Tester' in self.browser.contents)
     243        self.assertTrue('John Anthony Tester' in self.browser.contents)
    243244        self.browser.open(self.search_path)
    244245        # ... and via his reg_number ...
     
    246247        self.browser.getControl(name="searchterm").value = '2345'
    247248        self.browser.getControl("Search").click()
    248         self.assertFalse('John Tester' in self.browser.contents)
     249        self.assertFalse('John Anthony Tester' in self.browser.contents)
    249250        self.browser.getControl(name="searchtype").value = ['reg_number']
    250251        self.browser.getControl(name="searchterm").value = '1234'
    251252        self.browser.getControl("Search").click()
    252         self.assertTrue('John Tester' in self.browser.contents)
     253        self.assertTrue('John Anthony Tester' in self.browser.contents)
    253254        # ... and not via his application_number ...
    254255        self.browser.getControl(name="searchtype").value = ['applicant_id']
     
    256257            name="searchterm").value = self.applicant.application_number
    257258        self.browser.getControl("Search").click()
    258         self.assertFalse('John Tester' in self.browser.contents)
     259        self.assertFalse('John Anthony Tester' in self.browser.contents)
    259260        # ... but ia his applicant_id ...
    260261        self.browser.getControl(name="searchtype").value = ['applicant_id']
     
    262263            name="searchterm").value = self.applicant.applicant_id
    263264        self.browser.getControl("Search").click()
    264         self.assertTrue('John Tester' in self.browser.contents)
     265        self.assertTrue('John Anthony Tester' in self.browser.contents)
    265266        # ... and via his email
    266267        self.browser.getControl(name="searchtype").value = ['email']
    267268        self.browser.getControl(name="searchterm").value = 'xx@yy.zz'
    268269        self.browser.getControl("Search").click()
    269         self.assertTrue('John Tester' in self.browser.contents)
     270        self.assertTrue('John Anthony Tester' in self.browser.contents)
    270271        return
    271272
     
    759760        # Applicant is payee of the payment ticket.
    760761        self.assertEqual(
    761             IPaymentWebservice(payment).display_fullname, 'John Tester')
     762            IPaymentWebservice(payment).display_fullname, 'John Anthony Tester')
    762763        self.assertEqual(
    763764            IPaymentWebservice(payment).id, self.applicant.applicant_id)
Note: See TracChangeset for help on using the changeset viewer.