#NEWLINE# def test_rasterize_invalid_value( basic_geometry ) : #NEWLINE# #INDENT# ' A shape value that requires an int64 should raise an exception ' #NEWLINE# with Env ( ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) as ex : #NEWLINE# #INDENT# rasterize ( [ ( basic_geometry , 1000000000000 ) ] , out_shape = DEFAULT_SHAPE ) #NEWLINE# #UNINDENT# assert ( 'dtype must be one of' in str ( ex . value ) )