summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-08 14:27:53 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commitd1c7bd72991a7a6152d5a3a46e9098fea6b285db (patch)
tree820174192d71dc1d9919b927d9d7a8fdee78e321 /ishtar_common/tests.py
parent8f61fe2027ade0a9a4f13f923368b720677a8f7f (diff)
downloadIshtar-d1c7bd72991a7a6152d5a3a46e9098fea6b285db.tar.bz2
Ishtar-d1c7bd72991a7a6152d5a3a46e9098fea6b285db.zip
Rename media: fix potential encoding issue
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 9770d4b48..7443c271e 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -1684,12 +1684,12 @@ class CleanMedia(TestCase):
def test_rename(self):
test_names = [
- (u"éofficier2-12-02-04.93_gvK3hAr-1_2m7zZPn-1_nKhh2S2-1_"\
- u"ONmUhfD-1_ymA3gGJ-1_XzJyRx3-1_PhvRcO8-1-thumb_ZwWMKBd.jpg",
- u"éofficier2-12-02-04.93-thumb.jpg"),
- (u"a_ZwWMKBd.jpg", False), # no rename because too short
- (u"hoplala_gvK3hAr_2m7zZPn_nKhh2S2_ZwWMKBd.jpg",
- u"hoplala_gvK3hAr_2m7zZPn_nKhh2S2.jpg",), # stop before because
+ ("éofficier2-12-02-04.93_gvK3hAr-1_2m7zZPn-1_nKhh2S2-1_"\
+ "ONmUhfD-1_ymA3gGJ-1_XzJyRx3-1_PhvRcO8-1-thumb_ZwWMKBd.jpg",
+ "éofficier2-12-02-04.93-thumb.jpg"),
+ ("a_ZwWMKBd.jpg", False), # no rename because too short
+ ("hoplala_gvK3hAr_2m7zZPn_nKhh2S2_ZwWMKBd.jpg",
+ "hoplala_gvK3hAr_2m7zZPn_nKhh2S2.jpg",), # stop before because
# another file exists
]
base_dir = os.sep.join([settings.ROOT_PATH, u"..", u"ishtar_common",