'The set_language view only redirects to the \'next\' argument if it is
"safe".'

def test_setlang_unsafe_next(self):

    (lang_code, lang_name) = settings.LANGUAGES[0]
    post_data = dict(language=lang_code, next='//unsafe/redirection/')
    response = self.client.post('/views/i18n/setlang/', data=post_data)
    self.assertEqual(response.url, 'http://testserver/')
    self.assertEqual(self.client.session['django_language'], lang_code)
