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

If an applicant is removed also pdf files of this applicant have to be removed.

File:
1 edited

Legend:

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

    r10105 r10146  
    151151            % (self.applicant.applicant_id)
    152152            in logcontent)
     153        # When an applicant is removed, also the pdf files are gone.
     154        del self.app['applicants']['app2011'][self.applicant.application_number]
     155        fd = storage.getFile(file_id)
     156        self.assertTrue(fd is None)
    153157
    154158    def test_upload_refereeform_by_student(self):
     
    238242            % (self.applicant.applicant_id)
    239243            in logcontent)
     244        # When an applicant is removed, also the pdf files are gone.
     245        del self.app['applicants']['app2011'][self.applicant.application_number]
     246        fd = storage.getFile(file_id)
     247        self.assertTrue(fd is None)
Note: See TracChangeset for help on using the changeset viewer.