def test_datetime_to_time_format_conversion(self): format_testcases = ( ('%Y-%m-%d %H:%M', 'hh:ii'), ('%H:%M', 'hh:ii'), ) for format_, expected in format_testcases: self.assertEqual(widgets.datetime_format_to_js_time_format(format_), expected)
def test_datetime_to_time_format_conversion(self): format_testcases = ( ('%Y-%m-%d %H:%M', 'hh:ii'), ('%H:%M', 'hh:ii'), ) for format_, expected in format_testcases: self.assertEqual(widgets.datetime_format_to_js_time_format(format_), expected)
def compare_time_format(format, expected): assert widgets.datetime_format_to_js_time_format(format) == expected
def compare_time_format(format, expected): nose.tools.eq_(widgets.datetime_format_to_js_time_format(format), expected)
def compare_time_format(format, expected): nose.tools.eq_( widgets.datetime_format_to_js_time_format(format), expected)