#NEWLINE# def test_user_registration( self ) : #NEWLINE# #INDENT# with self . client : #NEWLINE# #INDENT# self . client . post ( '/register' , data = dict ( email = 'test@user.com' , password = 'test_user' , confirm = 'test_user' ) , follow_redirects = True ) #NEWLINE# user = User . query . filter_by ( email = 'test@user.com' ) . first ( ) #NEWLINE# self . assertTrue ( user . id ) #NEWLINE# self . assertTrue ( ( user . email == 'test@user.com' ) ) #NEWLINE# self . assertFalse ( user . admin )