- Timestamp:
- 24 Oct 2012, 09:38:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna/students/tests/test_browser.py
r9403 r9404 149 149 self.assertEqual(payment.amount_auth, 20000.0) 150 150 151 error, payment = utils.setPaymentDetails('schoolfee',self.student, 2004, 100) 152 self.assertEqual(error, u'Previous session payment not yet implemented.') 153 151 154 error, payment = utils.setPaymentDetails('clearance',self.student) 152 155 self.assertEqual(payment.p_level, 100) … … 156 159 self.assertEqual(error, None) 157 160 158 error, payment = utils.setPaymentDetails('schoolfee',self.student, 2004, 100) 159 self.assertEqual(error, u'Previous session payment not yet implemented.') 161 error, payment = utils.setPaymentDetails('hostel_maintenance',self.student) 162 self.assertEqual(payment.p_level, 100) 163 self.assertEqual(payment.p_session, 2004) 164 self.assertEqual(payment.amount_auth, 15000.0) 165 self.assertEqual(payment.p_item, u'sse_male_fr') 166 self.assertEqual(error, None) 167 168 self.student['studycourse'].certificate = self.certificate 169 error, payment = utils.setPaymentDetails('hostel_maintenance',self.student) 170 self.assertEqual(payment.p_level, 100) 171 self.assertEqual(payment.p_session, 2004) 172 self.assertEqual(payment.amount_auth, 10000.0) 173 self.assertEqual(payment.p_item, u'regular_male_fr') 174 self.assertEqual(error, None) 175 176 self.app['hostels'].accommodation_session = 2009 177 error, payment = utils.setPaymentDetails('hostel_maintenance',self.student) 178 self.assertEqual(error, 179 'Current session does not match accommodation session.') 180 self.assertEqual(payment, None) 160 181 return 161 182 … … 185 206 self.browser.getControl("Create bed ticket").click() 186 207 # Bed is randomly selected but, since there is only 187 # one bed for this student, we know that 208 # one bed for this student, we know that ... 188 209 self.assertMatches('...Hall 1, Block A, Room 101, Bed C...', 189 210 self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.