'Test _get_size'

def test__get_size(self):

    items_list = [None, {}, {u'size': None}, {u'size': u''}, {u'size': u'0'}, {u'size': u'123'}, {u'size': u'12.3'}, {u'size': u'-123'}, {u'size': u'-12.3'}, {u'size': u'1100000'}, {u'size': 0}, {u'size': 123}, {u'size': 12.3}, {u'size': (-123)}, {u'size': (-12.3)}, {u'size': 1100000}, [], [None], [1100000], [None, None, None], [None, None, u''], [None, None, u'0'], [None, None, u'123'], [None, None, u'12.3'], [None, None, u'-123'], [None, None, u'-12.3'], [None, None, u'1100000'], [None, None, 0], [None, None, 123], [None, None, 12.3], [None, None, (-123)], [None, None, (-12.3)], [None, None, 1100000], (), (None, None, None), (None, None, u''), (None, None, u'0'), (None, None, u'123'), (None, None, u'12.3'), (None, None, u'-123'), (None, None, u'-12.3'), (None, None, u'1100000'), u'', u'0', u'123', u'12.3', u'-123', u'-12.3', u'1100000', 0, 123, 12.3, (-123), (-12.3), 1100000]
    results_list = [(-1), (-1), (-1), (-1), 0, 123, (-1), (-123), (-1), 1100000, (-1), (-1), (-1), (-1), (-1), 1100000, (-1), (-1), (-1), (-1), (-1), 0, 123, (-1), (-123), (-1), 1100000, (-1), (-1), (-1), (-1), (-1), 1100000, (-1), (-1), (-1), 0, 123, (-1), (-123), (-1), 1100000, (-1), (-1), (-1), (-1), (-1), (-1), (-1), (-1), (-1), (-1), (-1), (-1), (-1)]
    unicode_items_list = [{u'size': None}, {u'size': u''}, {u'size': u'0'}, {u'size': u'123'}, {u'size': u'12.3'}, {u'size': u'-123'}, {u'size': u'-12.3'}, {u'size': u'1100000'}, {u'size': 0}, {u'size': 123}, {u'size': 12.3}, {u'size': (-123)}, {u'size': (-12.3)}, {u'size': 1100000}, [None, None, u''], [None, None, u'0'], [None, None, u'123'], [None, None, u'12.3'], [None, None, u'-123'], [None, None, u'-12.3'], [None, None, u'1100000'], (None, None, u''), (None, None, u'0'), (None, None, u'123'), (None, None, u'12.3'), (None, None, u'-123'), (None, None, u'-12.3'), (None, None, u'1100000'), u'', u'0', u'123', u'12.3', u'-123', u'-12.3', u'1100000']
    unicode_results_list = [(-1), (-1), 0, 123, (-1), (-123), (-1), 1100000, (-1), (-1), (-1), (-1), (-1), 1100000, (-1), 0, 123, (-1), (-123), (-1), 1100000, (-1), 0, 123, (-1), (-123), (-1), 1100000, (-1), (-1), (-1), (-1), (-1), (-1), (-1)]
    self.assertEqual(len(items_list), len(results_list), u'Number    of    parameters    ({0:d})    and    results    ({1:d})    does    not    match'.format(len(items_list), len(results_list)))
    self.assertEqual(len(unicode_items_list), len(unicode_results_list), u'Number    of    parameters    ({0:d})    and    results    ({1:d})    does    not    match'.format(len(unicode_items_list), len(unicode_results_list)))
    for (index, item) in enumerate(items_list):
        self.assertEqual(TorrentProvider(u'Test    Provider')._get_size(item), results_list[index])
    for (index, item) in enumerate(unicode_items_list):
        self.assertEqual(TorrentProvider(u'Test    Provider')._get_size(item), unicode_results_list[index])
