Changeset 7009 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 6 Nov 2011, 17:24:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r7006 r7009 497 497 self.assertTrue('Processing of 1 rows failed' in self.browser.contents) 498 498 self.assertTrue('Successfully processed 2 rows' in self.browser.contents) 499 return 499 500 500 501 def test_student_change_password(self): … … 741 742 self.assertMatches('...Clearance process has been started...', 742 743 self.browser.contents) 743 744 return 744 745 745 746 def test_student_payments(self): … … 834 835 self.browser.contents) 835 836 self.assertTrue(self.student.state,'school fee paid') 837 return 836 838 837 839 def test_manage_accommodation(self): … … 856 858 # Managers can use HOS code and book a bed space with it 857 859 self.browser.open(self.acco_student_path) 858 self.browser.getControl(" Add bed ticket").click()860 self.browser.getControl("Book accommodation").click() 859 861 self.assertMatches('...Wrong state...', 860 862 self.browser.contents) 861 863 IWorkflowInfo(self.student).fireTransition('admit') 862 self.browser.getControl(" Add bed ticket").click()864 self.browser.getControl("Book accommodation").click() 863 865 self.assertMatches('...Activation Code:...', 864 866 self.browser.contents) … … 872 874 self.assertTrue(bed.owner,self.student_id) 873 875 # BedTicketAddPage is now blocked 874 self.browser.getControl(" Add bed ticket").click()876 self.browser.getControl("Book accommodation").click() 875 877 self.assertMatches('...Ticket for 2004 already created...', 876 878 self.browser.contents) … … 889 891 self.browser.getControl("Remove selected", index=0).click() 890 892 self.assertMatches('...Successfully removed...', self.browser.contents) 891 # Due to an event handler also the bed has been released properly893 # The bed has been released properly by the event handler 892 894 bed = self.app['hostels']['hall-1']['hall-1_A_101_A'] 893 895 self.assertTrue(bed.owner == NOT_OCCUPIED) 896 return 894 897 895 898 def test_student_accommodation(self): 896 pass899 return
Note: See TracChangeset for help on using the changeset viewer.