diff --git a/test/rsrc/unicode’d.mp3 b/test/rsrc/unicode’d.mp3 new file mode 100644 index 000000000..ef732eba6 Binary files /dev/null and b/test/rsrc/unicode’d.mp3 differ diff --git a/test/test_library.py b/test/test_library.py index 9c40e8823..c5faa7f71 100644 --- a/test/test_library.py +++ b/test/test_library.py @@ -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):