#NEWLINE# def test_find_two_files_at_a_time( self ) : #NEWLINE# #INDENT# 'Starts with one include, finds it, then two more includes, finish when all are found.\n        Found items are taken into account in FindRequest.existing\n        ' #NEWLINE# NUM_FILES = 10 #NEWLINE# brl_a = BRLBlock ( ( '%s/%s/%s/master' % ( self . user , self . user , 'blocka' ) ) ) #NEWLINE# names_a = [ BlockCellName ( ( self . user + ( '/blocka/a%d.h' % i ) ) ) for i in range ( NUM_FILES ) ] #NEWLINE# resources_info = { ( 'a%d.h' % i ) : ( 'a' , [ ] ) for i in range ( NUM_FILES ) } #NEWLINE# publisher = TestPublisher ( self . user , self . store ) #NEWLINE# publisher . publish ( brl_a , resources_info ) #NEWLINE# request = FinderRequest ( ) #NEWLINE# request . policy = Policy . default ( ) #NEWLINE# version = BlockVersion ( result , 0 ) #NEWLINE# for i in range ( 0 , NUM_FILES , 2 ) : #NEWLINE# #INDENT# declaration1 = CPPDeclaration ( names_a [ i ] ) #NEWLINE# declaration2 = CPPDeclaration ( names_a [ ( i + 1 ) ] ) #NEWLINE# request . unresolved = { declaration1 , declaration2 } #NEWLINE# result = self . service . find ( request , BiiResponse ( ) ) #NEWLINE# self . check_result ( result , resolved = [ ( brl_a , 0 , { names_a [ i ] , names_a [ ( i + 1 ) ] } ) ] ) #NEWLINE# request . existing [ version ] [ declaration1 ] = { names_a [ i ] } #NEWLINE# request . existing [ version ] [ declaration2 ] = { names_a [ ( i + 1 ) ] } #NEWLINE# self . assertEqual ( len ( request . existing [ version ] ) , ( i + 2 ) )