#NEWLINE# def test_masked_image_as_unmasked( ) : #NEWLINE# #INDENT# m_img = MaskedImage ( np . random . rand ( 1 , 3 , 3 ) , copy = False ) #NEWLINE# img = m_img . as_unmasked ( ) #NEWLINE# assert ( type ( m_img ) == Image ) #NEWLINE# assert_allclose ( m_img . pixels , img . pixels )