#NEWLINE# def test_spot_latitude_invalid2( ) : #NEWLINE# #INDENT# s = SpotSource ( ) #NEWLINE# with pytest . raises ( ValueError ) as exc : #NEWLINE# #INDENT# s . latitude = np . array ( [ 1 , 2 , 3 ] ) #NEWLINE# #UNINDENT# assert ( s . value . args [ 0 ] == 'latitude should be a scalar value' )