<s> from guppy . heapy . test import support <EOL> class FirstCase ( support . TestCase ) : <EOL> def setUp ( self ) : <EOL> support . TestCase . setUp ( self ) <EOL> def test_1 ( self ) : <EOL> asrt = self . assert_ <EOL> a = [ ] <EOL> b = [ ] <EOL> c = self . iso ( a , b ) <EOL> asrt ( len ( c . nodes ) == <NUM_LIT:2> ) <EOL> asrt ( a in c ) <EOL> asrt ( b in c ) <EOL> asrt ( [ ] not in c ) <EOL> asrt ( c not in c ) <EOL> d = self . idset ( c . nodes ) <EOL> asrt ( c . nodes == d . nodes ) <EOL> asrt ( c == d ) <EOL> def test_2 ( self ) : <EOL> H = self . idset <EOL> e1 = [ ] <EOL> e2 = { } <EOL> e3 = ( ) <EOL> la = [ ] , [ e1 ] , [ e1 , e2 ] , [ e1 , e2 , e3 ] , [ e2 ] , [ e2 , e3 ] , [ e3 ] <EOL> self . guppy . sets . test . test_set_operations ( <EOL> [ H ( x ) for x in la ] , [ H ( x ) for x in la ] , [ H ( x ) for x in la ] ) <EOL> def test_3 ( self ) : <EOL> iso = self . iso <EOL> a = [ ] <EOL> b = [ a ] <EOL> c = [ b ] <EOL> self . View . root = c <EOL> x = iso ( b ) <EOL> self . assert_ ( x . referrers == iso ( c ) ) <EOL> self . aseq ( x . referents , iso ( a ) ) <EOL> self . aseq ( x . referents . referrers , x ) <EOL> self . aseq ( x . dominos , iso ( a , b ) ) <EOL> def test_main ( debug = False ) : <EOL> support . run_unittest ( FirstCase , debug ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
