#NEWLINE# @ recorder . use_cassette ( 'nc4_strings' ) #NEWLINE# def test_strings( ) : #NEWLINE# #INDENT# 'Test reading an array of strings' #NEWLINE# ds = Dataset ( 'http://localhost:8080/thredds/cdmremote/nc4/tst/tst_strings.nc' ) #NEWLINE# var = ds . variables [ 'measure_for_measure_var' ] #NEWLINE# assert ( var . shape == ( 43 , ) ) #NEWLINE# assert ( var [ 0 ] == 'Washington' ) #NEWLINE# assert ( var [ 10 ] == 'Polk' ) #NEWLINE# assert ( var [ ( - 1 ) ] == '' )