#NEWLINE# def test_asarray( self ) : #NEWLINE# #INDENT# p = pcl . PointCloud ( self . p ) #NEWLINE# a = np . asarray ( p ) #NEWLINE# a [ : ] += 6 #NEWLINE# assert_array_almost_equal ( p [ 0 ] , a [ 0 ] ) #NEWLINE# b = np . asarray ( p ) #NEWLINE# del b #NEWLINE# self . assertRaises ( ValueError , p . resize , ( 2 * len ( p ) ) )