#NEWLINE# def test_difference_update( self ) : #NEWLINE# #INDENT# retval = self . s . difference_update ( self . items2 ) #NEWLINE# self . assertEqual ( retval , None ) #NEWLINE# for c in ( self . items + self . items2 ) : #NEWLINE# #INDENT# if ( ( c in self . items ) and ( c not in self . items2 ) ) : #NEWLINE# #INDENT# self . assertIn ( c , self . s ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertNotIn ( c , self . s ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertRaises ( TypeError , self . s . difference_update , [ [ ] ] ) #NEWLINE# self . assertRaises ( TypeError , self . s . symmetric_difference_update , [ [ ] ] )