#NEWLINE# def test_register_user( self ) : #NEWLINE# #INDENT# response = self . c . post ( reverse ( 'leads:index' ) , { #NEWLINE# #INDENT# 'name' : 'john' , #NEWLINE# 'email' : 'john@domain.com' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirects ( response , reverse ( 'leads:thanks_register' ) ) #NEWLINE# reg_user = Register . objects . get ( name = 'john' ) #NEWLINE# self . assertEqual ( reg_user . email , 'john@domain.com' )