#NEWLINE# def test_as_imageio_3channels( ) : #NEWLINE# #INDENT# im = Image . init_blank ( ( 120 , 120 ) , n_channels = 3 , fill = 1 ) #NEWLINE# new_im = im . as_imageio ( ) #NEWLINE# assert ( im . dtype == np . uint8 ) #NEWLINE# assert_allclose ( ( np . ones ( [ 120 , 120 , 3 ] ) * 255 ) , new_im )