diff --git a/tests/test_variables.py b/tests/test_variables.py index a5c8302..6dd30cf 100644 --- a/tests/test_variables.py +++ b/tests/test_variables.py @@ -11,13 +11,13 @@ def test_variables(): z500 = Variable.from_dict("z500", {"mars": {"param": "z", "levtype": "pl", "levelist": 500}}) - assert z500.is_pressure_level() - assert z500.level() == 500 + assert z500.is_pressure_level + assert z500.level == 500 msl = Variable.from_dict("msl", {"mars": {"param": "msl", "levtype": "sfc"}}) - assert not msl.is_pressure_level() - assert msl.level() is None + assert not msl.is_pressure_level + assert msl.level is None if __name__ == "__main__":