#NEWLINE# def testParams( self ) : #NEWLINE# #INDENT# '\n        Test passing optional query parameters\n        ' #NEWLINE# query = 'SELECT * FROM raw_query_author WHERE first_name = %s' #NEWLINE# author = Author . objects . all ( ) [ 2 ] #NEWLINE# params = [ author . first_name ] #NEWLINE# results = list ( Author . objects . raw ( query , params = params ) ) #NEWLINE# self . assertProcessed ( Author , results , [ author ] ) #NEWLINE# self . assertNoAnnotations ( results ) #NEWLINE# self . assertEqual ( len ( results ) , 1 )