Ignore:
Timestamp:
26 Jun 2016, 05:35:30 (9 years ago)
Author:
Henrik Bettermann
Message:

Delete mandate after report creation.

File:
1 edited

Legend:

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

    r13991 r13992  
    15701570                container_name_1, self.applicant.application_number)
    15711571        self.app['mandates'].addMandate(mandate)
     1572        self.assertEqual(len(self.app['mandates'].keys()), 1)
    15721573        # Let's open the add form page via the mandate view
    15731574        self.browser.open('http://localhost/app/mandate?mandate_id=%s'
    15741575            % mandate.mandate_id)
     1576        self.assertTrue('Joan None' in self.browser.contents)
     1577        # Report can't be saved without required fields
     1578        self.browser.getControl(name="form.email").value = ''
     1579        self.browser.getControl("Submit").click()
     1580        self.assertTrue('Required input is missing' in self.browser.contents)
     1581        self.browser.getControl(name="form.email").value = 'bb@bb.bb'
    15751582        self.browser.getControl("Submit").click()
    15761583        self.assertTrue('Referee report has been saved' in self.browser.contents)
     
    15951602            in logcontent
    15961603            )
     1604        # Mandate is deleted
     1605        self.assertEqual(len(self.app['mandates'].keys()), 0)
Note: See TracChangeset for help on using the changeset viewer.