#NEWLINE# def test_get_with_queryset_injection( self ) : #NEWLINE# #INDENT# url = '/users/?location=1' #NEWLINE# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# response = self . client . get ( self ) #NEWLINE# #UNINDENT# self . assertEquals ( 200 , response . status_code ) #NEWLINE# data = json . loads ( response . content . decode ( 'utf-8' ) ) #NEWLINE# self . assertEquals ( len ( data [ 'users' ] ) , 2 )