'Unicode filenames should be processed correctly.'

def test_file_name(self):

    self.login(self.example_email('hamlet'))
    for expected in ['\xd0\x97\xd0\xb4\xd1\x80\xd0\xb0\xd0\xb2\xd0\xb5\xd0\xb8\xcc\x86\xd1\x82\xd0\xb5.txt', 'test']:
        fp = StringIO('bah!')
        fp.name = urllib.parse.quote(expected)
        result = self.client_post('/json/user_uploads', {'f1': fp})
        content = ujson.loads(result.content)
        assert (sanitize_name(expected) in content['uri'])
