#NEWLINE# def test_formset_splitdatetimefield( self ) : #NEWLINE# #INDENT# '\n        Formset should also work with SplitDateTimeField(initial=datetime.datetime.now).\n        Regression test for #18709.\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# 'form-TOTAL_FORMS' : '1' , #NEWLINE# 'form-INITIAL_FORMS' : '0' , #NEWLINE# 'form-0-when_0' : '1904-06-16' , #NEWLINE# 'form-0-when_1' : '15:51:33' , #NEWLINE# #UNINDENT# } #NEWLINE# formset = SplitDateTimeFormSet ( data ) #NEWLINE# self . assertTrue ( formset . is_valid ( ) )