Changeset 7074


Ignore:
Timestamp:
11 Nov 2011, 07:58:27 (13 years ago)
Author:
uli
Message:

Remove invalid test (default images are not stored in file store for
applicants).

File:
1 edited

Legend:

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

    r7063 r7074  
    647647        self.assertEqual(len(self.browser.contents), PH_LEN)
    648648
    649     def DISABLEDtest_after_login_default_stored_in_imagestorage(self):
    650         # After login the applicants placeholder image is stored in
    651         # an imagestorage
    652         storage = self.app['images']
    653         # In the beginning, the storage is empty
    654         self.assertEqual([x for x in storage.keys()], [])
    655         self.login()
    656         # After login, it is filled
    657         self.assertEqual(
    658             [x for x in storage.keys()],
    659             [u'b48a1d39bbcb32e955d9ff2dea4ed0e6'])
    660         file_id = self.applicant.passport.data
    661         self.assertEqual(
    662             file_id, u'b48a1d39bbcb32e955d9ff2dea4ed0e6-1')
    663         # The stored image can be fetched
    664         fd = storage.retrieveFile(file_id)
    665         file_len = len(fd.read())
    666         self.assertEqual(file_len, PH_LEN)
    667 
    668649    def test_after_submit_default_browsable(self):
    669650        # After submitting an applicant form the default image is
     
    803784        IWorkflowInfo(self.applicant).fireTransition('reset1')
    804785        # Now do the whole thing again but with correct state
    805         self.login() 
    806         self.fill_correct_values() 
     786        self.login()
     787        self.fill_correct_values()
    807788        pseudo_image = StringIO('I pretend to be a graphics file')
    808789        ctrl = self.browser.getControl(name='form.passport')
Note: See TracChangeset for help on using the changeset viewer.