Changeset 7685


Ignore:
Timestamp:
23 Feb 2012, 08:44:57 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix title assignment and add test for checking that the title looks as expected.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7683 r7685  
    159159        code = u'%s%s' % (data['prefix'], year)
    160160        appcats_dict = getUtility(IApplicantsUtils).getApplicationTypeDict()
    161         prefix = appcats_dict[data['prefix']][0]
    162         title = u'%s %s/%s' % (prefix.title, year, year + 1)
     161        title = appcats_dict[data['prefix']][0]
     162        title = u'%s %s/%s' % (title, year, year + 1)
    163163        if code in self.context.keys():
    164164            self.flash(
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r7649 r7685  
    252252        self.browser.getControl("Add applicants container").click()
    253253        self.assertTrue('Added:' in self.browser.contents)
     254        self.browser.getLink("app2010").click()
     255        self.assertTrue('<h1>General Studies 2010/2011</h1>'
     256            in self.browser.contents)
    254257        self.browser.open(self.add_container_path)
    255258        self.browser.getControl("Cancel").click()
Note: See TracChangeset for help on using the changeset viewer.