mirror of
https://github.com/beetbox/beets.git
synced 2026-02-18 21:36:35 +01:00
Added unit test for Library unicode filenames #833
This commit is contained in:
parent
e5c5e1858c
commit
16ef9a7aeb
2 changed files with 7 additions and 0 deletions
BIN
test/rsrc/unicode’d.mp3
Normal file
BIN
test/rsrc/unicode’d.mp3
Normal file
Binary file not shown.
|
|
@ -1,3 +1,4 @@
|
|||
# encoding: utf-8
|
||||
# This file is part of beets.
|
||||
# Copyright 2013, Adrian Sampson.
|
||||
#
|
||||
|
|
@ -1012,6 +1013,12 @@ class TemplateTest(_common.LibTestCase):
|
|||
self.album.store()
|
||||
self.assertEqual(self.i.evaluate_template('$foo'), 'baz')
|
||||
|
||||
class UnicodeReadWriteTest(_common.LibTestCase):
|
||||
def test_unicode_path(self):
|
||||
self.i.path = os.path.join(_common.RSRC, 'unicode’d.mp3')
|
||||
# if there are any problems with unicode paths, we will raise here and fail
|
||||
self.i.read()
|
||||
self.i.write()
|
||||
|
||||
class WriteTest(_common.LibTestCase):
|
||||
def test_write_nonexistant(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue