#NEWLINE# def test_data( ) : #NEWLINE# #INDENT# d = core . Data ( x = [ 1 , 2 , 3 ] , label = 'testing' ) #NEWLINE# d2 = clone ( d ) #NEWLINE# assert ( d2 . label == 'testing' ) #NEWLINE# np . testing . assert_array_equal ( d2 [ 'x' ] , [ 1 , 2 , 3 ] ) #NEWLINE# np . testing . assert_array_equal ( d2 [ 'Pixel Axis 0' ] , [ 0 , 1 , 2 ] )