Ignore:
Timestamp:
24 Aug 2015, 10:53:22 (9 years ago)
Author:
Henrik Bettermann
Message:

Extend test.

File:
1 edited

Legend:

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

    r13218 r13219  
    501501            'admitted': 0, 'submitted': 0, 'initialized': 1, 'paid': 0})
    502502        # Container can be purged
     503        IWorkflowState(self.applicant).setState('submitted')
    503504        self.browser.open(self.container_manage_path)
    504505        self.browser.getLink("Purge").click()
    505506        self.browser.getControl("Remove").click()
    506         self.assertTrue('11 application records purged' in self.browser.contents)
     507        self.assertTrue('10 application records purged' in self.browser.contents)
     508        self.assertEqual(self.applicantscontainer.counts[0], 1)
     509        self.assertEqual(self.applicantscontainer.counts[1], 1)
     510        IWorkflowState(self.applicant).setState('initialized')
     511        self.browser.open(self.container_manage_path)
     512        self.browser.getLink("Purge").click()
     513        self.browser.getControl("Remove").click()
     514        self.assertTrue('1 application records purged' in self.browser.contents)
    507515        self.assertEqual(self.applicantscontainer.counts[0], 0)
    508516        self.assertEqual(self.applicantscontainer.counts[1], 0)
Note: See TracChangeset for help on using the changeset viewer.