'Test passing optional query parameters'

def testParams(self):

    query = 'SELECT    *    FROM    raw_query_author    WHERE    first_name    =    %s'
    author = Author.objects.all()[2]
    params = [author.first_name]
    qset = Author.objects.raw(query, params=params)
    results = list(qset)
    self.assertProcessed(Author, results, [author])
    self.assertNoAnnotations(results)
    self.assertEqual(len(results), 1)
    self.assertIsInstance(repr(qset), str)
