Changeset 10833 for main/waeup.fceokene/trunk/src/waeup/fceokene
- Timestamp:
- 10 Dec 2013, 07:48:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
r10827 r10833 17 17 ## 18 18 import os 19 from datetime import datetime 19 20 from zope.component import getUtility 20 21 from zope.catalog.interfaces import ICatalog … … 316 317 def setUp(self): 317 318 super(InterswitchTestsApplicants, self).setUp() 319 configuration = SessionConfiguration() 320 configuration.academic_session = datetime.now().year - 2 321 self.app['configuration'].addSessionConfiguration(configuration) 318 322 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 319 323 self.browser.open(self.manage_path) … … 324 328 self.browser.getControl(name="transition").value = ['start'] 325 329 self.browser.getControl("Save").click() 330 331 def test_interswitch_form(self): 326 332 self.browser.getControl("Add online").click() 327 333 self.assertMatches('...ticket created...', 328 self.browser.contents)329 self.assertMatches('...Amount Authorized...',330 334 self.browser.contents) 331 335 self.assertMatches( … … 336 340 ctrl = self.browser.getControl(name='val_id') 337 341 self.value = ctrl.options[0] 338 339 340 def test_interswitch_form(self):341 342 342 # Manager can access InterswitchForm 343 343 self.browser.open(self.payment_url)
Note: See TracChangeset for help on using the changeset viewer.