<s> from datetime import datetime <EOL> from django . forms import SplitHiddenDateTimeWidget <EOL> from django . test import override_settings <EOL> from django . utils import translation <EOL> from . base import WidgetTest <EOL> class SplitHiddenDateTimeWidgetTest ( WidgetTest ) : <EOL> widget = SplitHiddenDateTimeWidget ( ) <EOL> def test_render_empty ( self ) : <EOL> self . check_html ( self . widget , '<STR_LIT:date>' , '<STR_LIT>' , html = ( <EOL> '<STR_LIT>' <EOL> ) ) <EOL> def test_render_value ( self ) : <EOL> d = datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> self . check_html ( self . widget , '<STR_LIT:date>' , d , html = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) ) <EOL> self . check_html ( self . widget , '<STR_LIT:date>' , datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> , <NUM_LIT> ) , html = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) ) <EOL> self . check_html ( self . widget , '<STR_LIT:date>' , datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> ) , html = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) ) <EOL> @ override_settings ( USE_L10N = True ) <EOL> @ translation . override ( '<STR_LIT>' ) <EOL> def test_l10n ( self ) : <EOL> d = datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT:12> , <NUM_LIT> ) <EOL> self . check_html ( self . widget , '<STR_LIT:date>' , d , html = ( <EOL> """<STR_LIT>""" <EOL> ) ) </s>
