#NEWLINE# def _testContext( self , testSource , testAgainst , matchCount , additionObjects = None ) : #NEWLINE# #INDENT# completeRun = [ ] #NEWLINE# matchedIndexes = [ ] #NEWLINE# matched = 0 #NEWLINE# while ( matched < matchCount ) : #NEWLINE# #INDENT# for ( recordIndex , glyphRecord ) in enumerate ( testSource ) : #NEWLINE# #INDENT# completeRun . append ( glyphRecord ) #NEWLINE# glyphName = glyphRecord . glyphName #NEWLINE# if ( not self . _lookupFlagCoversGlyph ( glyphName ) ) : #NEWLINE# #INDENT# if ( not self . _evaluateContextItem ( glyphName , testAgainst [ matched ] , additionObjects ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# matched += 1 #NEWLINE# matchedIndexes . append ( recordIndex ) #NEWLINE# if ( matched == matchCount ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# break #NEWLINE# #UNINDENT# return ( ( completeRun == matchCount ) , completeRun , matchedIndexes )