Changeset 5811


Ignore:
Timestamp:
7 Mar 2011, 13:18:41 (14 years ago)
Author:
uli
Message:

Update tests. Tests fail now, but they reflect the correct behaviour
we expect from the failing functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py

    r5810 r5811  
    156156        return
    157157
     158applicant = Applicant()
    158159fake_apps = {
    159160    'cest10' : ApplicantsContainer(),
     
    161162    }
    162163
    163 fake_apps['cest10']['APP-99999'] = Applicant()
     164fake_apps['cest10']['APP-99999'] = applicant
    164165
    165166class HelperToolsTest(unittest.TestCase):
     
    188189        return
    189190
     191    def test_get_applicant_data(self):
     192        result = get_applicant_data('APP-99999')
     193        assert result is applicant
     194        return
     195
     196    def test_get_applicant_data_none(self):
     197        result = get_applicant_data('NOT-EXISTIING')
     198        assert result is None
     199        return
    190200   
    191201def suite():
Note: See TracChangeset for help on using the changeset viewer.