#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# ids = util . IdentitySet ( [ 1 , 2 , 3 , 2 , 1 ] ) #NEWLINE# self . assert_eq ( ids , [ 1 , 2 , 3 ] ) #NEWLINE# ids = util . IdentitySet ( ids ) #NEWLINE# self . assert_eq ( ids , [ 1 , 2 , 3 ] ) #NEWLINE# ids = util . IdentitySet ( ) #NEWLINE# self . assert_eq ( ids , [ ] ) #NEWLINE# ids = util . IdentitySet ( [ ] ) #NEWLINE# self . assert_eq ( ids , [ ] ) #NEWLINE# ids = util . IdentitySet ( ids ) #NEWLINE# self . assert_eq ( ids , [ ] )