Ignore:
Timestamp:
2 May 2013, 20:03:34 (12 years ago)
Author:
Henrik Bettermann
Message:

Add test: If an applicant is removed also the passport image of this applicant is removed.

File:
1 edited

Legend:

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

    r10098 r10147  
    698698        file_len = len(fd.read())
    699699        self.assertEqual(file_len, 31)
     700        # When an applicant is removed, also the image is gone.
     701        del self.app['applicants']['app2011'][self.applicant.application_number]
     702        fd = storage.getFile(file_id)
     703        self.assertTrue(fd is None)
    700704
    701705    def test_uploaded_images_equal(self):
Note: See TracChangeset for help on using the changeset viewer.