Changeset 7018 for main/waeup.sirp/trunk


Ignore:
Timestamp:
7 Nov 2011, 09:56:59 (13 years ago)
Author:
Henrik Bettermann
Message:

Some more tests to be sure that the bed type and payment item are different after relocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py

    r7017 r7018  
    902902        bed2 = self.app['hostels']['hall-1']['hall-1_A_101_B']
    903903        self.assertTrue(bed2.owner == self.student_id)
     904        self.assertTrue(self.student['accommodation'][
     905            '2004'].bed_type == u'regular_female_fr')
     906        # The payment object still shows the original payment item
     907        payment_id = self.student['payments'].keys()[0]
     908        payment = self.student['payments'][payment_id]
     909        self.assertTrue(payment.p_item == u'regular_male_fr')
    904910        # Managers can delete bed tickets
    905911        self.browser.open(self.acco_student_path)
Note: See TracChangeset for help on using the changeset viewer.