fix empty disambig string test

This commit is contained in:
diomekes 2017-01-20 19:40:09 -05:00
parent d10df34c65
commit eaa2161a90

View file

@ -730,10 +730,14 @@ class DisambiguationTest(_common.TestCase, PathFormattingMixin):
self._setf(u'foo%aunique{albumartist album,albumtype}/$title')
self._assert_dest(b'/base/foo [foo_bar]/the title', self.i1)
def test_drop_empty_disam_string(self):
def test_drop_empty_disambig_string(self):
album1 = self.lib.get_album(self.i1)
album1.year = None
album1.albumdisambig = None
album2 = self.lib.get_album(self.i2)
album2.albumdisambig = u'foo'
album1.store()
album2.store()
self._setf(u'foo%aunique{albumartist album,albumdisambig}/$title')
self._assert_dest(b'/base/foo/the title', self.i1)
def test_change_brackets(self):