#NEWLINE# def test_getitem_with_component_link( ) : #NEWLINE# #INDENT# d = Data ( x = [ 1 , 2 , 3 , 4 ] ) #NEWLINE# y = ( y . id [ 'x' ] * 5 ) #NEWLINE# np . testing . assert_array_equal ( d [ y ] , [ 5 , 10 , 15 , 20 ] )