#NEWLINE# def test_save( self ) : #NEWLINE# #INDENT# 'Test saving the form' #NEWLINE# user = mommy . make ( 'accounts.User' ) #NEWLINE# form = forms . TermsAndConductAcceptForm ( { #NEWLINE# #INDENT# 'accept_tos' : 'yes' , #NEWLINE# 'accept_ucoc' : 'yes' , #NEWLINE# 'next' : '/' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( form . is_valid ( ) ) #NEWLINE# user = form . save ( user . pk ) #NEWLINE# self . assertIsInstance ( form . tos_accepted_at , datetime ) #NEWLINE# self . assertIsInstance ( user . ucoc_accepted_at , datetime )