#NEWLINE# def test_post_on_reset_password( self ) : #NEWLINE# #INDENT# obj = self . model_create ( ) #NEWLINE# url = ( '%sreset_password/' % self . url_detail ( obj . pk ) ) #NEWLINE# response = self . client . post ( url , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , format = 'json' ) #NEWLINE# data = response . data #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( self . url_detail ( new_obj . pk ) , response . data [ '_links' ] [ 'self' ] ) #NEWLINE# new_obj = Credential . objects . get ( pk = obj . pk ) #NEWLINE# self . assertNotEqual ( new_obj . password , obj . password , 'Passwod not changed' ) #NEWLINE# self . assertEqual ( new_obj . password , data [ 'password' ] )