#NEWLINE# def test_boolean_image_from_vector_no_copy( ) : #NEWLINE# #INDENT# vector = np . zeros ( 16 , dtype = np . bool ) #NEWLINE# image = BooleanImage . init_blank ( ( 4 , 4 ) ) #NEWLINE# image2 = image . from_vector ( vector , copy = False ) #NEWLINE# assert is_same_array ( image2 . pixels . ravel ( ) , image2 )