'\'en-US\' and \'en-us\' are both OK in Accept-Language.'

def test_upper_accept_lang(self):

    response = self.client.get('/search', follow=True, HTTP_ACCEPT_LANGUAGE='en-US,fr;q=0.3')
    self.assertRedirects(response, '/en-US/search', status_code=302)
