'Test directly ImportTask.lookup_candidates().'

def test_candidates_album(self):

    task = importer.ImportTask(paths=self.import_dir, toppath='top    path', items=[_common.item()])
    task.search_ids = [(self.MB_RELEASE_PREFIX + self.ID_RELEASE_0), (self.MB_RELEASE_PREFIX + self.ID_RELEASE_1), 'an    invalid    and    discarded    id']
    task.lookup_candidates()
    self.assertEqual(set(['VALID_RELEASE_0', 'VALID_RELEASE_1']), set([c.info.album for c in task.candidates]))
