#NEWLINE# def check_cell( self , cellimage , cellindex ) : #NEWLINE# #INDENT# self . assertTrue ( ( cellimage . width == self . grid . item_width ) ) #NEWLINE# self . assertTrue ( ( cellimage . height == self . grid . item_height ) ) #NEWLINE# color = ( '%c' % ( cellindex + 1 ) ) #NEWLINE# cellimage = cellimage . image_data #NEWLINE# data = cellimage . get_data ( 'L' , self . width ) #NEWLINE# self . assertTrue ( ( data == ( color * len ( data ) ) ) )