#NEWLINE# def test_iadd( self ) : #NEWLINE# #INDENT# u = self . type2test ( [ 0 , 1 ] ) #NEWLINE# u2 = u #NEWLINE# u += [ 2 , 3 ] #NEWLINE# self . assertIs ( u , u2 ) #NEWLINE# u = self . type2test ( 'spam' ) #NEWLINE# u += 'eggs' #NEWLINE# self . assertEqual ( u , self . type2test ( 'spameggs' ) ) #NEWLINE# self . assertRaises ( TypeError , u . __iadd__ , None )