#NEWLINE# def test_join( self ) : #NEWLINE# #INDENT# left = self . frame . ix [ : , [ 'A' , 'B' ] ] #NEWLINE# right = self . frame . ix [ : , [ 'C' , 'D' ] ] #NEWLINE# joined = left . join ( self ) #NEWLINE# tm . assert_sp_frame_equal ( joined , self . frame , exact_indices = False ) #NEWLINE# right = self . frame . ix [ : , [ 'B' , 'D' ] ] #NEWLINE# self . assertRaises ( Exception , left . join , right ) #NEWLINE# with tm . assertRaisesRegexp ( ValueError , 'Other Series must have a name' ) : #NEWLINE# #INDENT# self . frame . join ( Series ( np . random . randn ( len ( self . frame ) ) , index = self . frame . index ) )