'Tests if get_categories returns the valid format and the right values'

def test_get_categories(self):

    categories_list = [None, [], [u'A', u'B'], [u'A', u'B'], u'', u'A|B', u'A|B']
    results_list = [[], [], [u'A', u'B'], [u'A', u'B'], [], [u'A', u'B'], [u'A', u'B']]
    self.assertEqual(len(categories_list), len(results_list), u'Number    of    parameters    ({0:d})    and    results    ({1:d})    does    not    match'.format(len(categories_list), len(results_list)))
    for (index, categories) in enumerate(categories_list):
        self.assertEqual(ComingEpisodes._get_categories(categories), results_list[index])
