Ignore:
Timestamp:
11 Nov 2011, 09:02:15 (13 years ago)
Author:
Henrik Bettermann
Message:

Further increase overall test coverage.

File:
1 edited

Legend:

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

    r7070 r7077  
    3636from waeup.sirp.students.student import Student
    3737from waeup.sirp.students.accommodation import BedTicket
     38from waeup.sirp.university.department import Department
    3839
    3940class HostelsContainerTestCase(FunctionalTestCase):
     
    7273        # We cannot call the fundamental methods of a base in that case
    7374        container = HostelsContainer()
     75        hostel = Hostel()
    7476        self.assertRaises(
    7577            NotImplementedError, container.archive)
    7678        self.assertRaises(
    7779            NotImplementedError, container.clear)
     80        # We cannot add arbitrary objects
     81        department = Department()
     82        self.assertRaises(
     83            TypeError, container.addHostel, department)
     84        self.assertRaises(
     85            TypeError, hostel.addBed, department)
    7886
    7987class HostelsFullSetup(FunctionalTestCase):
Note: See TracChangeset for help on using the changeset viewer.