def METHOD_NAME(self):
    format_testcases = (
        ("%Y-%m-%d", "YYYY-MM-DD"),
        ("%Y-%m-%d %H:%M", "YYYY-MM-DD"),
    )
    for format_, expected in format_testcases:
        self.assertEqual(
            widgets.datetime_format_to_js_date_format(format_), expected
        )