def test_room_variable_capacity(): name = fake.name() room = Room(name=name) cap = random.randint(10, 50) assert room.capacity >= 10 room.capacity = cap assert room.capacity == cap
def test_room_capacity_bounds(): name = fake.name() room = Room(name=name) with pytest.raises(ValueError): room.capacity = 5