#NEWLINE# def test_obj_del( self ) : #NEWLINE# #INDENT# 'Test object deletion and reference cycles.' #NEWLINE# p = tvtk . Property ( ) #NEWLINE# p . representation = 0 #NEWLINE# ref = weakref . ref ( p ) #NEWLINE# del p #NEWLINE# self . assertEqual ( ref ( ) , None )