#NEWLINE# def test_confirm_invalid_post( self ) : #NEWLINE# #INDENT# ( url , path ) = self . _test_confirm_start ( ) #NEWLINE# path = ( ( path [ : ( - 5 ) ] + ( '0' * 4 ) ) + path [ ( - 1 ) ] ) #NEWLINE# self . client . post ( path , { #NEWLINE# #INDENT# 'new_password1' : 'anewpassword' , #NEWLINE# 'new_password2' : ' anewpassword' , #NEWLINE# #UNINDENT# } ) #NEWLINE# u = User . objects . get ( email = 'staffmember@example.com' ) #NEWLINE# self . assertTrue ( ( not u . check_password ( 'anewpassword' ) ) )