Changeset 7074 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 11 Nov 2011, 07:58:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
r7063 r7074 647 647 self.assertEqual(len(self.browser.contents), PH_LEN) 648 648 649 def DISABLEDtest_after_login_default_stored_in_imagestorage(self):650 # After login the applicants placeholder image is stored in651 # an imagestorage652 storage = self.app['images']653 # In the beginning, the storage is empty654 self.assertEqual([x for x in storage.keys()], [])655 self.login()656 # After login, it is filled657 self.assertEqual(658 [x for x in storage.keys()],659 [u'b48a1d39bbcb32e955d9ff2dea4ed0e6'])660 file_id = self.applicant.passport.data661 self.assertEqual(662 file_id, u'b48a1d39bbcb32e955d9ff2dea4ed0e6-1')663 # The stored image can be fetched664 fd = storage.retrieveFile(file_id)665 file_len = len(fd.read())666 self.assertEqual(file_len, PH_LEN)667 668 649 def test_after_submit_default_browsable(self): 669 650 # After submitting an applicant form the default image is … … 803 784 IWorkflowInfo(self.applicant).fireTransition('reset1') 804 785 # 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() 807 788 pseudo_image = StringIO('I pretend to be a graphics file') 808 789 ctrl = self.browser.getControl(name='form.passport')
Note: See TracChangeset for help on using the changeset viewer.