#NEWLINE# def test_list_unauthorized( self ) : #NEWLINE# #INDENT# UserProxy . objects . create_user ( 'nobody@nobody.com' , 'nobody@nobody.com' , 'password' ) #NEWLINE# response = self . client . get ( '/api/1.0/search_subscription/' , data = { #NEWLINE# #INDENT# 'limit' : 5 , #NEWLINE# #UNINDENT# } , ** utils . get_auth_headers ( 'nobody@nobody.com' ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# body = json . loads ( response . content ) #NEWLINE# self . assertEqual ( len ( body [ 'objects' ] ) , 0 ) #NEWLINE# self . assertEqual ( body [ 'meta' ] [ 'total_count' ] , 0 ) #NEWLINE# self . assertEqual ( body [ 'meta' ] [ 'limit' ] , 5 ) #NEWLINE# self . assertEqual ( body [ 'meta' ] [ 'offset' ] , 0 ) #NEWLINE# self . assertEqual ( body [ 'meta' ] [ 'next' ] , None ) #NEWLINE# self . assertEqual ( body [ 'meta' ] [ 'previous' ] , None )