#NEWLINE# def test_registered_on_defaults_to_datetime( self ) : #NEWLINE# #INDENT# with self . client : #NEWLINE# #INDENT# self . client . post ( '/login' , data = dict ( email = 'ad@min.com' , password = 'admin_user' ) , follow_redirects = True ) #NEWLINE# user = User . query . filter_by ( email = 'ad@min.com' ) . first ( ) #NEWLINE# self . assertIsInstance ( user . registered_on , datetime . datetime )