'Tests if date_mozillian validates when profile language is e.g. \'es\'.
Related bug 914448.'

def test_date_mozillian_validates_in_different_locales(self):

    user = UserFactory.create(email='es@example.com')
    data = {'full_name': user.userprofile.full_name, 'email': user.email, 'username': user.username, 'lat': 40.005814, 'lng': (-3.42071), 'date_mozillian_year': '2013', 'date_mozillian_month': '1', 'externalaccount_set-MAX_NUM_FORMS': '1000', 'externalaccount_set-INITIAL_FORMS': '0', 'externalaccount_set-TOTAL_FORMS': '0', 'language_set-MAX_NUM_FORMS': '1000', 'language_set-INITIAL_FORMS': '0', 'language_set-TOTAL_FORMS': '0', 'contribution_section': ''}
    data.update(_get_privacy_fields(MOZILLIANS))
    url = reverse('phonebook:profile_edit', prefix='/es/')
    with self.login(user) as client:
        response = client.post(url, data=data, follow=True)
    eq_(response.status_code, 200)
