#NEWLINE# def test_get_with_exclude_all_and_include_field( self ) : #NEWLINE# #INDENT# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# url = '/users/?exclude[]=*&include[]=id' #NEWLINE# response = self . client . get ( url ) #NEWLINE# #UNINDENT# self . assertEquals ( 200 , response . status_code , response . content . decode ( 'utf-8' ) ) #NEWLINE# data = json . loads ( response . content . decode ( 'utf-8' ) ) #NEWLINE# self . assertEqual ( set ( [ 'id' ] ) , set ( data [ 'users' ] [ 0 ] . keys ( ) ) )