#NEWLINE# def test_difference( self ) : #NEWLINE# #INDENT# i = self . s . difference ( self . items2 ) #NEWLINE# for c in self . letters : #NEWLINE# #INDENT# self . assertEqual ( ( c in self ) , ( ( c in self . d ) and ( c not in self . items2 ) ) ) #NEWLINE# #UNINDENT# self . assertEqual ( self . s , WeakSet ( self . items ) ) #NEWLINE# self . assertEqual ( type ( i ) , WeakSet ) #NEWLINE# self . assertRaises ( TypeError , self . s . difference , [ [ ] ] )