#NEWLINE# @ skipIf ( ( pytz is None ) , 'this test requires pytz' ) #NEWLINE# def test_form_with_non_existent_time( self ) : #NEWLINE# #INDENT# form = EventForm ( { #NEWLINE# #INDENT# 'dt' : '2011-03-27 02:30:00' , #NEWLINE# #UNINDENT# } ) #NEWLINE# with timezone . override ( pytz . timezone ( 'Europe/Paris' ) ) : #NEWLINE# #INDENT# self . assertTrue ( form . is_valid ( ) ) #NEWLINE# self . assertEqual ( self . cleaned_data [ 'dt' ] , datetime . datetime ( 2011 , 3 , 27 , 2 , 30 , 0 ) )