LastGenre test: prefer_specific without canonical

This tests commit cef9a331.
This commit is contained in:
Zsin Skri 2018-06-30 22:38:56 +02:00
parent 0f847aefcb
commit 96120d5c6d

View file

@ -138,6 +138,21 @@ class LastGenrePluginTest(unittest.TestCase, TestHelper):
self.assertEqual(self.plugin._resolve_genres(['iota blues']),
u'')
def test_prefer_specific_loads_tree(self):
"""When prefer_specific is enabled but canonical is not the
tree still has to be loaded.
"""
self._setup_config(prefer_specific=True, canonical=False)
self.assertNotEqual(self.plugin.c14n_branches, [])
def test_prefer_specific_without_canonical(self):
"""When prefer_specific is enabled but canonical is not the
tree still has to be loaded.
"""
self._setup_config(prefer_specific=True, canonical=False)
self.assertEqual(self.plugin._resolve_genres(['delta blues']),
u'Delta Blues')
def test_no_duplicate(self):
"""Remove duplicated genres.
"""