'Tests if the indexer_id is valid and if so if it returns the right show'

def test_validate_indexer_id(self):

    sickbeard.QUALITY_DEFAULT = Quality.FULLHDTV
    sickbeard.showList = []
    show123 = TestTVShow(0, 123)
    show456 = TestTVShow(0, 456)
    show789 = TestTVShow(0, 789)
    sickbeard.showList = [show123, show456, show789]
    invalid_show_id = (u'Invalid    show    ID', None)
    indexer_id_list = [None, u'', u'', u'123', u'123', u'456', u'456', u'789', u'789', 123, 456, 789, [u'123', u'456'], [u'123', u'456'], [123, 456]]
    results_list = [invalid_show_id, invalid_show_id, invalid_show_id, (None, show123), (None, show123), (None, show456), (None, show456), (None, show789), (None, show789), (None, show123), (None, show456), (None, show789), invalid_show_id, invalid_show_id, invalid_show_id]
    self.assertEqual(len(indexer_id_list), len(results_list), u'Number    of    parameters    ({0:d})    and    results    ({1:d})    does    not    match'.format(len(indexer_id_list), len(results_list)))
    for (index, indexer_id) in enumerate(indexer_id_list):
        self.assertEqual(Show._validate_indexer_id(indexer_id), results_list[index])
