Changeset 6801 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 20 Sep 2011, 06:07:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6800 r6801 364 364 self.browser.getControl(name="transition").value = ['reset6'] 365 365 self.browser.getControl("Save").click() 366 # The pay_school_fee transition triggers some changes of previously367 # setattributes366 # In state returning the pay_school_fee transition triggers some 367 # changes of attributes 368 368 student['studycourse'].certificate = self.certificate 369 369 student['studycourse'].current_session = 2004 … … 372 372 self.browser.getControl(name="transition").value = ['pay_school_fee'] 373 373 self.browser.getControl("Save").click() 374 self.assertEqual(student['studycourse'].current_session, 2005) 375 self.assertEqual(student['studycourse'].current_level, 200) 376 self.assertEqual(student['studycourse'].current_verdict, '') 374 self.assertEqual(student['studycourse'].current_session, 2005) # +1 375 self.assertEqual(student['studycourse'].current_level, 200) # +100 376 self.assertEqual(student['studycourse'].current_verdict, '') # empty 377 377 self.assertEqual(student['studycourse'].previous_verdict, 'A') 378 self.browser.getControl(name="transition").value = ['register_courses'] 379 self.browser.getControl("Save").click() 380 self.browser.getControl(name="transition").value = ['validate_courses'] 381 self.browser.getControl("Save").click() 382 self.browser.getControl(name="transition").value = ['return'] 383 self.browser.getControl("Save").click() 378 384 return 379 385
Note: See TracChangeset for help on using the changeset viewer.