def test_adjust_gamma_zero():
 image = np.random.uniform(0, 255, (8, 8))
 result = exposure.adjust_gamma(image, 0)
 dtype = image.dtype.type
 assert_array_equal(result, dtype_range[dtype][1])

def test_adjust_gamma_zero ( ) : image = np . random . uniform ( 0 , 255 , ( 8 , 8 ) ) result = exposure . adjust_gamma ( image , 0 ) dtype = image . dtype . type assert_array_equal ( result , dtype_range [ dtype ] [ 1 ] )
white image should be returned for gamma equal to zero .