#NEWLINE# def test_invalidate_all( self ) : #NEWLINE# #INDENT# chain_list = list ( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ) #NEWLINE# invalidators = ( self . pg . invalidate , functools . partial ( self . pg . invalidate , ( lambda node , _ : ( node == 'Z' ) ) ) ) #NEWLINE# for invalidator in self : #NEWLINE# #INDENT# self . _mk_chain ( self . pg , chain_list ) #NEWLINE# self . assertTrue ( self . pg . completed_nodes ( ) ) #NEWLINE# self . assertTrue ( self . pg . dependents ( ) ) #NEWLINE# self . assertTrue ( self . pg . dependencies ( ) ) #NEWLINE# self . assertTrue ( self . pg . cyclic_dependencies ( ) ) #NEWLINE# invalidator ( ) #NEWLINE# self . assertFalse ( self . pg . completed_nodes ( ) ) #NEWLINE# self . assertFalse ( self . pg . dependents ( ) ) #NEWLINE# self . assertFalse ( self . pg . dependencies ( ) ) #NEWLINE# self . assertFalse ( self . pg . cyclic_dependencies ( ) )