Exemple #1
0
    def test_add_person(self):
        """calling add_person method to add a new person to the office
        thus reducing the capacity of office to 5"""
        Room.add_person(self.new_office, self.new_staff)
        self.assertEqual(self.new_office.room_capacity, 5)
        """calling add_person method to add a new person to the living
        space thus reducing the capacity of the living space to 3"""

        Room.add_person(self.new_living_Space, self.new_fellow)
        self.assertEqual(self.new_living_Space.room_capacity, 3)