#NEWLINE# def test_image_centre( ) : #NEWLINE# #INDENT# pixels = np . ones ( ( 1 , 10 , 20 ) ) #NEWLINE# image = Image ( image ) #NEWLINE# assert np . all ( ( image . centre ( ) == np . array ( [ 5 , 10 ] ) ) )