Ignore:
Timestamp:
24 Aug 2015, 05:56:39 (9 years ago)
Author:
Henrik Bettermann
Message:

Extend and use container_code attribute to distinguish used and unused records.

File:
1 edited

Legend:

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

    r13213 r13216  
    191191        return
    192192
    193     def test_record_used(self):
    194         self.applicant.password is None
    195         self.applicant.firstname is None
    196         self.applicant.lastname is None
    197         self.applicant.email is None
    198         self.applicant.record_used is False
    199         self.applicant.firstname is 'Anna'
    200         self.applicant.record_used is True
     193    def test_container_code(self):
     194        fake_container = grok.Container()
     195        fake_container.__name__ = 'folder'
     196        fake_container.code = 'folder'
     197        appl = Applicant()
     198        appl.password is None
     199        appl.firstname is None
     200        appl.lastname is None
     201        appl.email is None
     202        appl.container_code is 'folder-'
     203        appl.firstname is 'Anna'
     204        appl.container_code is 'folder+'
     205        return
    201206
    202207class ApplicantFactoryTest(FunctionalTestCase):
Note: See TracChangeset for help on using the changeset viewer.