Changeset 13462 for main/waeup.aaue/trunk
- Timestamp:
- 16 Nov 2015, 09:16:43 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r13437 r13462 45 45 NigeriaStudentPersonalManageFormPage, 46 46 NigeriaStudentClearanceEditFormPage, 47 NigeriaAccommodationManageFormPage, 47 48 ) 48 49 from waeup.aaue.students.interfaces import ( … … 354 355 pre_text=pre_text, post_text='') 355 356 357 class CustomAccommodationManageFormPage(NigeriaAccommodationManageFormPage): 358 """ Page to manage bed tickets. 359 This manage form page is for both students and students officers. 360 """ 361 with_hostel_selection = True 362 356 363 class CustomBedTicketAddPage(BedTicketAddPage): 357 364 with_ac = False -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13438 r13462 557 557 self.student.father_name = u'Rudolf' 558 558 self.browser.open(self.student_path + '/start_clearance') 559 self.assertMatches('...<h1 class="kofa-content-label">Start clearance</h1>...', 560 self.browser.contents) 559 self.assertMatches( 560 '...<h1 class="kofa-content-label">Start clearance</h1>...', 561 self.browser.contents) 561 562 562 563 def test_student_accommodation(self): … … 577 578 self.browser.open(self.acco_path) 578 579 IWorkflowInfo(self.student).fireTransition('admit') 579 self.browser.get Link("Book accommodation").click()580 self.browser.getControl("Book accommodation").click() 580 581 self.assertFalse('Activation Code:' in self.browser.contents) 581 582 self.browser.getControl("Create bed ticket").click() … … 585 586 'Hall 1, Block A, Room 101, Bed A (regular_male_all)') 586 587 # Only the hall name is displayed 587 self.assertEqual(self.student['accommodation']['2004'].display_coordinates, 588 self.assertEqual(self.student[ 589 'accommodation']['2004'].display_coordinates, 588 590 'Hall 1') 589 591 self.assertFalse('Hall 1, Block A, Room 101, Bed A'
Note: See TracChangeset for help on using the changeset viewer.