#NEWLINE# def test_with_retry( self ) : #NEWLINE# #INDENT# channel = Mock ( ) #NEWLINE# client = channel . connection . client = Mock ( ) #NEWLINE# client . declared_entities = set ( ) #NEWLINE# entity = Mock ( ) #NEWLINE# entity . can_cache_declaration = True #NEWLINE# entity . is_bound = True #NEWLINE# entity . channel = channel #NEWLINE# maybe_declare ( client , channel , retry = True ) #NEWLINE# self . assertTrue ( channel . connection . client . ensure . call_count )