Ignore:
Timestamp:
24 Aug 2015, 08:44:35 (9 years ago)
Author:
Henrik Bettermann
Message:

Add UI components to purge applicants containers.

File:
1 edited

Legend:

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

    r13217 r13218  
    467467        return
    468468
    469     def test_prefill_container(self):
     469    def test_prefill_purge_container(self):
    470470        # Managers can pre-fill containers in create mode
    471471        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     
    500500            {'not admitted': 0, 'started': 0, 'created': 0,
    501501            'admitted': 0, 'submitted': 0, 'initialized': 1, 'paid': 0})
     502        # Container can be purged
     503        self.browser.open(self.container_manage_path)
     504        self.browser.getLink("Purge").click()
     505        self.browser.getControl("Remove").click()
     506        self.assertTrue('11 application records purged' in self.browser.contents)
     507        self.assertEqual(self.applicantscontainer.counts[0], 0)
     508        self.assertEqual(self.applicantscontainer.counts[1], 0)
    502509        return
    503510
Note: See TracChangeset for help on using the changeset viewer.