#NEWLINE# def assertOnceInResponse( self , value ) : #NEWLINE# #INDENT# matched = len ( [ r for r in self . connection . response if ( r == value ) ] ) #NEWLINE# self . assertEqual ( 1 , matched , ( 'Expected to find %s once in %s' % ( repr ( value ) , repr ( self . connection . response ) ) ) )