def METHOD_NAME(self):
    config['format_item'] = '$artist - $album - $title'
    config['format_album'] = '$albumartist - $album'
    # Test album with no mb_albumid.
    # The default format for an album include $albumartist so
    # set that here, too.
    album_invalid = Item(
        albumartist='album info',
        album='album info',
        path=''
    )
    self.lib.add_album([album_invalid])
    # default format
    with capture_log('beets.mbsync') as logs:
        self.run_command('mbsync')
    e = 'mbsync: Skipping album with no mb_albumid: ' + \
        'album info - album info'
    self.assertEqual(e, logs[0])
    # custom format
    with capture_log('beets.mbsync') as logs:
        self.run_command('mbsync', '-f', "'$album'")
    e = "mbsync: Skipping album with no mb_albumid: 'album info'"
    self.assertEqual(e, logs[0])
    # restore the config
    config['format_item'] = '$artist - $album - $title'
    config['format_album'] = '$albumartist - $album'
    # Test singleton with no mb_trackid.
    # The default singleton format includes $artist and $album
    # so we need to stub them here
    item_invalid = Item(
        artist='album info',
        album='album info',
        title='old title',
        path='',
    )
    self.lib.add(item_invalid)
    # default format
    with capture_log('beets.mbsync') as logs:
        self.run_command('mbsync')
    e = 'mbsync: Skipping singleton with no mb_trackid: ' + \
        'album info - album info - old title'
    self.assertEqual(e, logs[0])
    # custom format
    with capture_log('beets.mbsync') as logs:
        self.run_command('mbsync', '-f', "'$title'")
    e = "mbsync: Skipping singleton with no mb_trackid: 'old title'"
    self.assertEqual(e, logs[0])