#NEWLINE# def test_geometry_mask_invert( basic_geometry , basic_image_2x2 ) : #NEWLINE# #INDENT# with Env ( ) : #NEWLINE# #INDENT# assert numpy . array_equal ( basic_image_2x2 , geometry_mask ( [ basic_geometry ] , out_shape = DEFAULT_SHAPE , transform = Affine . identity ( ) , invert = True ) )