Changeset 6484
- Timestamp:
- 29 Jun 2011, 09:47:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
r6483 r6484 27 27 import unittest 28 28 from datetime import datetime 29 from zope.app.testing.functional import FunctionalTestCase30 29 from zope.app.testing.functional import HTTPCaller as http 31 30 from zope.component import createObject … … 33 32 from zope.security.interfaces import Unauthorized 34 33 from zope.testbrowser.testing import Browser 35 from waeup.sirp.testing import FunctionalLayer 34 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase 36 35 from waeup.sirp.app import University 37 36 from waeup.sirp.applicants.container import ApplicantsContainer … … 211 210 self.browser.getControl(name="form.lastname").value = 'Tester' 212 211 self.browser.getControl(name="form.course1").value = ['CERT1'] 213 self.browser.getControl(name="form.date_of_birth").value = ' Jonathan'212 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 214 213 self.browser.getControl(name="form.lga").value = ['foreigner'] 215 214 self.browser.getControl(name="form.sex").value = ['m'] 216 215 self.browser.getControl("Save").click() 217 self.assert True('Required input is missing' inself.browser.contents)216 self.assertMatches('...Form has been saved...', self.browser.contents) 218 217 return 219 218
Note: See TracChangeset for help on using the changeset viewer.