#NEWLINE# def test_section( self ) : #NEWLINE# #INDENT# fs = fits . open ( self . data ( 'arange.fits' ) ) #NEWLINE# with catch_warnings ( record = True ) as w : #NEWLINE# #INDENT# assert np . all ( ( fs [ 0 ] . section [ ( 3 , 2 , 5 ) ] == np . array ( [ 357 ] ) ) ) #NEWLINE# assert ( len ( w ) == 0 )