#NEWLINE# @ errors . callback #NEWLINE# def _filter( self , result ) : #NEWLINE# #INDENT# if ( self . conf [ 'source' ] not in result [ 1 ] ) : #NEWLINE# #INDENT# raise errors . TestCritical ( ( 'Invalid data source %r' % self . conf [ 'source' ] ) ) #NEWLINE# #UNINDENT# value = result [ 1 ] [ value . conf [ 'source' ] ] #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return str ( value )