#NEWLINE# def test_garbage( self ) : #NEWLINE# #INDENT# 'Test if reference cycles can be viewed.' #NEWLINE# start_debug_garbage ( ) #NEWLINE# try : #NEWLINE# #INDENT# body = self . get ( '/garbage' , status = 200 ) #NEWLINE# cycle = [ 'spam' , 'eggs' ] #NEWLINE# cycle . append ( cycle ) #NEWLINE# del cycle #NEWLINE# body = self . get ( '/garbage' , status = 200 ) #NEWLINE# body = self . get ( '/refresh' , status = 303 ) #NEWLINE# body = self . get ( '/garbage' , status = 200 ) #NEWLINE# self . assertTrue ( ( '/garbage/0' in body ) ) #NEWLINE# body = self . get ( '/garbage/0' , status = 200 ) #NEWLINE# self . assertTrue ( ( '/garbage/graph/0' in body ) , body ) #NEWLINE# self . assertTrue ( ( '/garbage/graph/0?reduce=' in cycle ) , body ) #NEWLINE# body = self . get ( '/garbage/graph/0' , status = 200 ) #NEWLINE# body = self . get ( '/garbage/graph/0?reduce=on' , status = 200 ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# end_debug_garbage ( )