@recorder.use_cassette('nc4_groups')
def test_groups():
    ds = Dataset('http://localhost:8080/thredds/cdmremote/nc4/tst/tst_groups.nc')
    var = ds.groups['g1'].variables['var']

    # Need to check actual path because sample file's header includes data--no request
    # necessary
    assert var.path == '/g1/var'

    dat = var[:]
    assert dat.shape == (1,)
    assert_almost_equal(dat[0], 1.0)
Test that a variable's path includes any parent groups
dataset/ETHPy150Open Unidata/siphon/siphon/cdmr/tests/test_dataset.py/test_groups