Added unit test for Library unicode filenames #833

This commit is contained in:
philipbjorge 2014-07-01 19:14:01 -07:00
parent e5c5e1858c
commit 16ef9a7aeb
2 changed files with 7 additions and 0 deletions

BIN
test/rsrc/unicode’d.mp3 Normal file

Binary file not shown.

View file

@ -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, 'unicoded.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):