Ignore:
Timestamp:
16 Nov 2015, 09:16:43 (9 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

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  
    4545    NigeriaStudentPersonalManageFormPage,
    4646    NigeriaStudentClearanceEditFormPage,
     47    NigeriaAccommodationManageFormPage,
    4748    )
    4849from waeup.aaue.students.interfaces import (
     
    354355            pre_text=pre_text, post_text='')
    355356
     357class 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
    356363class CustomBedTicketAddPage(BedTicketAddPage):
    357364    with_ac = False
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r13438 r13462  
    557557        self.student.father_name = u'Rudolf'
    558558        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)
    561562
    562563    def test_student_accommodation(self):
     
    577578        self.browser.open(self.acco_path)
    578579        IWorkflowInfo(self.student).fireTransition('admit')
    579         self.browser.getLink("Book accommodation").click()
     580        self.browser.getControl("Book accommodation").click()
    580581        self.assertFalse('Activation Code:' in self.browser.contents)
    581582        self.browser.getControl("Create bed ticket").click()
     
    585586            'Hall 1, Block A, Room 101, Bed A (regular_male_all)')
    586587        # 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,
    588590            'Hall 1')
    589591        self.assertFalse('Hall 1, Block A, Room 101, Bed A'
Note: See TracChangeset for help on using the changeset viewer.