#NEWLINE# def test_boolean_image_from_vector( ) : #NEWLINE# #INDENT# vector = np . zeros ( 16 , dtype = np . bool ) #NEWLINE# image = BooleanImage . init_blank ( ( 4 , 4 ) ) #NEWLINE# image2 = image . from_vector ( vector ) #NEWLINE# assert np . all ( ( image2 . as_vector ( ) == vector ) )