#NEWLINE# def assertPaginationNumQueries( self , num_queries , template , queryset = None ) : #NEWLINE# #INDENT# 'Assert the expected *num_queries* are actually executed.\n\n        The given *queryset* is paginated using *template*. If the *queryset*\n        is not given, a default queryset containing 47 model instances is used.\n        In the *template*, the queryset must be referenced as ``objects``.\n\n        Return the resulting list of objects for the current page.\n        ' #NEWLINE# if ( queryset is None ) : #NEWLINE# #INDENT# queryset = make_model_instances ( 47 ) #NEWLINE# #UNINDENT# request = self . request ( ) #NEWLINE# with self . assertNumQueries ( num_queries ) : #NEWLINE# #INDENT# ( _ , context ) = self . render ( request , template , objects = queryset ) #NEWLINE# objects = list ( context [ 'objects' ] ) #NEWLINE# #UNINDENT# return objects