#NEWLINE# @ recorder . use_cassette ( 'nc4_vlen' ) #NEWLINE# def test_vlen( ) : #NEWLINE# #INDENT# 'Test reading vlen' #NEWLINE# ds = Dataset ( 'http://localhost:8080/thredds/cdmremote/nc4/vlen/tst_vl.nc4' ) #NEWLINE# dat = ds . variables [ 'var' ] [ : ] #NEWLINE# assert ( dat . shape == ( 3 , ) ) #NEWLINE# assert_array_equal ( dat [ 0 ] , np . array ( [ ( - 99 ) ] , dtype = np . int32 ) ) #NEWLINE# assert_array_equal ( dat [ 1 ] , np . array ( [ ( - 99 ) , ( - 99 ) ] , dtype = np . int32 ) ) #NEWLINE# assert_array_equal ( dat [ 2 ] , np . array ( [ ( - 99 ) , ( - 99 ) , ( - 99 ) ] , dtype = np . int32 ) )