Changeset 6112


Ignore:
Timestamp:
16 May 2011, 10:25:13 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix tests.

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

Legend:

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

    r5908 r6112  
    217217    def test_extractCredentials_full_set(self):
    218218        request = self.filled_request({
    219                 'form.prefix': 'APP',
     219                'form.ac_prefix': 'APP',
    220220                'form.ac_series': '1',
    221221                'form.ac_number': '1234567890',
     
    228228    def test_extractCredentials_accesscode_only(self):
    229229        request = self.filled_request({
    230                 'form.prefix': 'APP',
     230                'form.ac_prefix': 'APP',
    231231                'form.ac_series': '1',
    232232                'form.ac_number': '1234567890',
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r6104 r6112  
    5454
    5555        # Add an applicants container where we can login (or not)
    56         app['applicants']['testapplicants'] = ApplicantsContainer()
     56        applicantscontainer = ApplicantsContainer()
     57        applicantscontainer.ac_prefix = 'APP'
     58        app['applicants']['testapplicants'] = applicantscontainer
    5759
    5860        # Put the prepopulated site into test ZODB and prepare test
     
    135137        super(LoginTestWithPINs, self).setUp()
    136138
    137         # Create 5 access codes with prefix 'FOO' and cost 9.99 each
     139        # Create 5 access codes with prefix'FOO' and cost 9.99 each
    138140        pin_container = self.getRootFolder()['app']['accesscodes']
    139141        pin_container.createBatch(
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_interfaces.py

    r6088 r6112  
    4141   
    4242    def test_vocabulary_len(self):
    43         self.assertEqual(len(self.vocab), 9)
     43        self.assertEqual(len(self.vocab), 10)
    4444        return
    4545
Note: See TracChangeset for help on using the changeset viewer.