Ignore:
Timestamp:
22 May 2013, 19:04:48 (11 years ago)
Author:
Henrik Bettermann
Message:

Customize getCertTitle.

File:
1 edited

Legend:

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

    r10146 r10203  
    246246        fd = storage.getFile(file_id)
    247247        self.assertTrue(fd is None)
     248
     249    def test_certificate_source(self):
     250        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     251        self.browser.open(self.manage_path)
     252        self.assertTrue('value="CERT1">CERT1 - Unnamed Certificate</option>'
     253            in self.browser.contents)
     254        self.certificate.custom_textline_1 = u'Maths, Physics'
     255        self.certificate.custom_float_1 = 50.0
     256        self.browser.open(self.manage_path)
     257        self.assertTrue(
     258            'value="CERT1">CERT1 - Unnamed Certificate [Maths, Physics, 50]</option>'
     259            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.