#NEWLINE# def test_replaced( self ) : #NEWLINE# #INDENT# ( A , B ) = ( self . A , self . B ) #NEWLINE# a1 = A ( ) #NEWLINE# coll = a1 . bs #NEWLINE# a1 . bs . append ( B ( ) ) #NEWLINE# a1 . bs = [ ] #NEWLINE# assert ( len ( B ) == 0 ) #NEWLINE# coll . append ( B ( ) ) #NEWLINE# assert ( len ( coll ) == 1 )