def test_match_initialized_vars_fail(ds1, ds2): """Test if check works if both do not have the same variables.""" with pytest.raises(VariableError) as e: match_initialized_vars(ds1, ds2.rename({"air": "tmp"})) assert "Please provide a Dataset/DataArray with at least" in str(e.value)
def test_match_initialized_vars(ds1, ds2): """Test if check works if both have the same variables.""" assert match_initialized_vars(ds1, ds2)