#NEWLINE# def test_add_component_via_setitem( self ) : #NEWLINE# #INDENT# d = Data ( x = [ 1 , 2 , 3 ] ) #NEWLINE# d [ 'y' ] = ( self [ 'x' ] * 2 ) #NEWLINE# np . testing . assert_array_equal ( d [ 'y' ] , [ 2 , 4 , 6 ] )