Ignore:
Timestamp:
22 Aug 2016, 13:40:55 (8 years ago)
Author:
Henrik Bettermann
Message:

Fix useless test.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

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

    r14025 r14109  
    527527
    528528class ApplicantsContainerPurgeFormPage(KofaEditFormPage):
    529     """Form to pre-fill applicants containers.
     529    """Form to purge applicants containers.
    530530    """
    531531    grok.context(IApplicantsContainer)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicant.py

    r13974 r14109  
    198198        fake_container.code = 'folder'
    199199        appl = Applicant()
    200         appl.password is None
    201         appl.firstname is None
    202         appl.lastname is None
    203         appl.email is None
    204         appl.container_code is 'folder-'
    205         appl.firstname is 'Anna'
    206         appl.container_code is 'folder+'
     200        appl.__parent__ = fake_container
     201        self.assertTrue(appl.password is None)
     202        self.assertTrue(appl.firstname is None)
     203        self.assertTrue(appl.lastname is None)
     204        self.assertTrue(appl.email is None)
     205        self.assertEqual(appl.container_code, 'folder-')
     206        appl.firstname = u'Anna'
     207        self.assertEqual(appl.container_code, 'folder+')
    207208        return
    208209
Note: See TracChangeset for help on using the changeset viewer.