def test_string_values(self): person = Person("Jack", "0", -1) assert person.enter_floor == 0 assert person.exit_floor == -1
def test_invalid(self): with pytest.raises(TypeError): Person() with pytest.raises(ValueError): Person("Joe", "first", "last")