#NEWLINE# def test_expired( self ) : #NEWLINE# #INDENT# ( A , B ) = ( self . A , self . B ) #NEWLINE# a1 = A ( ) #NEWLINE# coll = a1 . bs #NEWLINE# a1 . bs . append ( B ( ) ) #NEWLINE# state = attributes . instance_state ( a1 ) #NEWLINE# state . _expire ( state . dict , set ( ) ) #NEWLINE# assert_raises ( Warning , coll . append , B ( ) )