#NEWLINE# def test_good_custom_convert_form( self ) : #NEWLINE# #INDENT# self . client . get ( '/lazy/' ) #NEWLINE# self . client . post ( reverse ( 'test_good_convert' ) , { #NEWLINE# #INDENT# 'username' : 'foo' , #NEWLINE# 'password1' : 'password' , #NEWLINE# 'password2' : 'password' , #NEWLINE# #UNINDENT# } ) #NEWLINE# users = get_user_model ( ) . objects . all ( ) #NEWLINE# self . assertEqual ( 1 , len ( users ) ) #NEWLINE# user = users [ 0 ] #NEWLINE# self . assertEqual ( user , authenticate ( username = 'demo' , password = 'demo' ) ) #NEWLINE# self . assertFalse ( is_lazy_user ( user ) )