#NEWLINE# def test_extend( self ) : #NEWLINE# #INDENT# loc1 = _Locations ( ) #NEWLINE# loc2 = _Locations ( ) #NEWLINE# ( r1 , r2 ) = self . _data . items ( ) #NEWLINE# loc1 . add ( r1 [ 0 ] , r1 [ 1 ] ) #NEWLINE# loc2 . add ( r2 [ 0 ] , r2 [ 1 ] ) #NEWLINE# loc1 . extend ( loc2 ) #NEWLINE# self . assertListEqual ( sorted ( loc1 . items ( ) ) , sorted ( [ ( k , [ k ] ) for ( k , v ) in self . _data . items ( ) ] ) )