'The request QUERY_STRING might not be unicode.'

def test_smart_query_string(self):

    request = self.rf.get(u'/pa+th')
    request.LANGUAGE_CODE = 'ja'
    request.META['QUERY_STRING'] = 's=\xe3\x82\xa2'
    response = self.ptsm.process_request(request)
    eq_('/ja/pa%20th?s=%E3%82%A2', response['location'])
