def test_count_c14n(self):
        self._setup_config(whitelist=set(['blues', 'rock', 'jazz']),
                           canonical=True,
                           count=2)
        # thanks to c14n, 'blues' superseeds 'country blues' and takes the
        # second slot
        self.assertEqual(self.plugin._resolve_genres(
                         ['jazz', 'pop', 'country blues', 'rock']),
                         u'Jazz, Blues')
Keep the n first genres, after having applied c14n when necessary
dataset/ETHPy150Open beetbox/beets/test/test_lastgenre.py/LastGenrePluginTest.test_count_c14n