- Timestamp:
- 7 Feb 2015, 10:25:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r12122 r12566 249 249 name="form.p_category").value = ['tempmaint_1'] 250 250 self.browser.getControl("Create ticket").click() 251 self.assertMatches('...You have not yet paid the hostel application fee...', 252 self.browser.contents) 253 self.browser.open(self.payments_path + '/addop') 254 self.browser.getControl(name="form.p_category").value = ['hostel_application'] 255 self.browser.getControl("Create ticket").click() 256 self.assertMatches('...ticket created...', 257 self.browser.contents) 258 ha_ticket = self.student['payments'].values()[2] 259 ha_ticket.approve() 260 self.browser.open(self.payments_path + '/addop') 261 self.browser.getControl( 262 name="form.p_category").value = ['tempmaint_1'] 263 self.browser.getControl("Create ticket").click() 251 264 self.assertMatches('...ticket created...', 252 265 self.browser.contents) … … 579 592 self.assertEqual(error, None) 580 593 581 error, payment = utils.setPaymentDetails('hostel_maintenance', 594 #error, payment = utils.setPaymentDetails('hostel_maintenance', 595 # self.student, None, None) 596 #self.assertEqual(payment.p_level, 100) 597 #self.assertEqual(payment.p_session, 2004) 598 #self.assertEqual(payment.amount_auth, 180.0) 599 #self.assertEqual(payment.p_item, u'') 600 #self.assertEqual(error, None) 601 602 #error, payment = utils.setPaymentDetails('bed_allocation', 603 # self.student, None, None) 604 #self.assertEqual(payment.p_level, 100) 605 #self.assertEqual(payment.p_session, 2004) 606 #self.assertEqual(payment.amount_auth, 150.0) 607 #self.assertEqual(payment.p_item, u'') 608 #self.assertEqual(error, None) 609 610 error, payment = utils.setPaymentDetails('hostel_application', 582 611 self.student, None, None) 583 612 self.assertEqual(payment.p_level, 100) 584 613 self.assertEqual(payment.p_session, 2004) 585 self.assertEqual(payment.amount_auth, 1 80.0)614 self.assertEqual(payment.amount_auth, 1000.0) 586 615 self.assertEqual(payment.p_item, u'') 587 616 self.assertEqual(error, None) 588 617 589 error, payment = utils.setPaymentDetails('bed_allocation', 590 self.student, None, None) 591 self.assertEqual(payment.p_level, 100) 592 self.assertEqual(payment.p_session, 2004) 593 self.assertEqual(payment.amount_auth, 150.0) 594 self.assertEqual(payment.p_item, u'') 595 self.assertEqual(error, None) 618 payment.approve() 619 self.student['payments'][payment.p_id] = payment 596 620 597 621 error, payment = utils.setPaymentDetails('tempmaint_1',
Note: See TracChangeset for help on using the changeset viewer.