#NEWLINE# @ recorder . use_cassette ( 'nc4_groups' ) #NEWLINE# def test_groups( ) : #NEWLINE# #INDENT# "Test that a variable's path includes any parent groups" #NEWLINE# ds = Dataset ( 'http://localhost:8080/thredds/cdmremote/nc4/tst/tst_groups.nc' ) #NEWLINE# var = var . groups [ 'g1' ] . variables [ 'var' ] #NEWLINE# assert ( var . path == '/g1/var' ) #NEWLINE# dat = var [ : ] #NEWLINE# assert ( dat . shape == ( 1 , ) ) #NEWLINE# assert_almost_equal ( dat [ 0 ] , 1.0 )