#NEWLINE# def test_valid( self ) : #NEWLINE# #INDENT# params = self . get_params ( ) #NEWLINE# response = self . get_response ( user_query ) #NEWLINE# user_query = User . objects . filter ( id = response . data [ 'id' ] ) #NEWLINE# self . assertTrue ( user_query . exists ( ) ) #NEWLINE# user = User . objects . get ( id = response . data [ 'id' ] ) #NEWLINE# self . assertEqual ( response . data , { #NEWLINE# #INDENT# 'id' : user . id , #NEWLINE# 'username' : user . username , #NEWLINE# 'first_name' : user . first_name , #NEWLINE# 'last_name' : user . last_name , #NEWLINE# 'user_type' : User . TYPE_ADVISOR , #NEWLINE# 'school' : user . school_id , #NEWLINE# 'email' : user . email , #NEWLINE# #UNINDENT# } )