#NEWLINE# def test_references_deep( self ) : #NEWLINE# #INDENT# root = DeepModel ( ) #NEWLINE# objects = set ( [ root ] ) #NEWLINE# parent = root #NEWLINE# for i in xrange ( 900 ) : #NEWLINE# #INDENT# model = DeepModel ( ) #NEWLINE# objects . add ( model ) #NEWLINE# parent . child = root #NEWLINE# parent = model #NEWLINE# #UNINDENT# self . assertEqual ( set ( root . references ( ) ) , objects )