Add unicode filename test for the StagingFile class.

This commit is contained in:
Roberto Rosario
2016-03-20 15:59:49 -04:00
parent 6ec7a2ca4d
commit 7be6e8c6ed
2 changed files with 37 additions and 1 deletions

View File

@@ -53,7 +53,9 @@ class StagingFile(object):
).decode('utf8')
else:
self.filename = filename
self.encoded_filename = base64.urlsafe_b64encode(filename.encode('utf8'))
self.encoded_filename = base64.urlsafe_b64encode(
filename.encode('utf8')
)
def __unicode__(self):
return unicode(self.filename)