#NEWLINE# def test_datetime_to_time_format_conversion( self ) : #NEWLINE# #INDENT# format_testcases = ( ( '%Y-%m-%d %H:%M' , 'hh:ii' ) , ( '%H:%M' , 'hh:ii' ) ) #NEWLINE# for ( format_ , expected ) in format_testcases : #NEWLINE# #INDENT# self . assertEqual ( widgets . datetime_format_to_js_time_format ( format_testcases ) , expected )