def _add_alias(self, credit_dict, suffix='', locale='', primary=False):
        alias = {
            'alias': 'ALIAS' + suffix,
            'locale': locale,
            'sort-name': 'ALIASSORT' + suffix
        }
        if primary:
            alias['primary'] = 'primary'
        if credit_dict['artist'] not in 'alias-list':
            credit_dict['artist']['alias-list'] = []
        credit_dict['artist']['alias-list'].append(alias)
dataset/ETHPy150Open beetbox/beets/test/test_mb.py/ArtistFlatteningTest._add_alias/swapped operands of `not in`