def test_get_mesh_names(): """ Check that it can find the mesh variable names. """ with chdir(files): nc = netCDF4.Dataset('ElevenPoints_UGRIDv0.9.nc') names = read_netcdf.find_mesh_names(nc) assert names == [u'Mesh2']
def test_get_mesh_names(): """ Check that it can find the mesh variable. NOTE: this really should check for more than one mesh.. """ with chdir(files): nc = netCDF4.Dataset(file11) names = read_netcdf.find_mesh_names(nc) assert names == [u'Mesh2']