'Test _get_size'

def test__get_size(self):

    items_list = [None, {}, {u'links': None}, {u'links': []}, {u'links': [{}]}, {u'links': [{u'length': 1}, {u'length': None}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u''}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'0'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'123'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'12.3'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'-123'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'-12.3'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': 0}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': 123}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': 12.3}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': (-123)}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': (-12.3)}, {u'length': 3}]}]
    results_list = [(-1), (-1), (-1), (-1), (-1), (-1), (-1), 0, 123, (-1), (-123), (-1), 0, 123, 12, (-123), (-12)]
    unicode_items_list = [{u'links': None}, {u'links': []}, {u'links': [{}]}, {u'links': [{u'length': 1}, {u'length': None}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u''}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'0'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'123'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'12.3'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'-123'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': u'-12.3'}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': 0}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': 123}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': 12.3}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': (-123)}, {u'length': 3}]}, {u'links': [{u'length': 1}, {u'length': (-12.3)}, {u'length': 3}]}]
    unicode_results_list = [(-1), (-1), (-1), (-1), (-1), 0, 123, (-1), (-123), (-1), 0, 123, 12, (-123), (-12)]
    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(NZBProvider(u'Test    Provider')._get_size(item), results_list[index])
    for (index, item) in enumerate(unicode_items_list):
        self.assertEqual(NZBProvider(u'Test    Provider')._get_size(item), unicode_results_list[index])
