#NEWLINE# def test_shapes( runner , pixelated_image_file ) : #NEWLINE# #INDENT# result = runner . invoke ( main_group , [ 'shapes' , pixelated_image_file ] ) #NEWLINE# assert ( runner . exit_code == 0 ) #NEWLINE# assert ( result . output . count ( '"FeatureCollection"' ) == 1 ) #NEWLINE# assert ( result . output . count ( '"Feature"' ) == 4 ) #NEWLINE# assert numpy . allclose ( json . loads ( result . output ) [ 'features' ] [ 0 ] [ 'geometry' ] [ 'coordinates' ] , [ [ [ 0 , 0 ] , [ 0 , 1 ] , [ 1 , 1 ] , [ 1 , 0 ] , [ 0 , 0 ] ] ] )