'The calendar shows the date from the input field for every locale
supported by Django.'

def test_calendar_show_date_from_input(self):

    self.admin_login(username='super', password='secret', login_url='/')
    member = Member.objects.create(name='Bob', birthdate=datetime(1984, 5, 15), gender='M')
    month_string = 'May'
    path = os.path.join(os.path.dirname(import_module('django.contrib.admin').__file__), 'locale')
    for (language_code, language_name) in settings.LANGUAGES:
        try:
            catalog = gettext.translation('djangojs', path, [language_code])
        except IOError:
            continue
        if (month_string in catalog._catalog):
            month_name = catalog._catalog[month_string]
        else:
            month_name = month_string
        may_translation = month_name
        expected_caption = '{0:s}    {1:d}'.format(may_translation.upper(), 1984)
        with override_settings(LANGUAGE_CODE=language_code, USE_L10N=True):
            url = reverse('admin:admin_widgets_member_change', args=(member.pk,))
            self.selenium.get((self.live_server_url + url))
            self.selenium.find_element_by_id('calendarlink0').click()
            self.wait_for_text('#calendarin0    caption', expected_caption)
