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

def test_get_categories_map(self):

    categories_list = [None, [], [u'A', u'B'], [u'A', u'B']]
    results_list = [{}, {}, {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_map(categories), results_list[index])
