'Test __init__'

def test___init__(self):

    test_cases = {(None, None): (0, u'normal'), (u'', None): (0, u'normal'), (u'123', None): (123, u'normal'), (u'12.3', None): (0, u'normal'), (123, None): (123, u'normal'), (12.3, None): (12, u'normal'), (None, u''): (0, u'normal'), (u'', u''): (0, u'normal'), (u'123', u''): (123, u'normal'), (u'12.3', u''): (0, u'normal'), (123, u''): (123, u'normal'), (12.3, u''): (12, u'normal'), (None, u'normal'): (0, u'normal'), (u'', u'normal'): (0, u'normal'), (u'123', u'normal'): (123, u'normal'), (u'12.3', u'normal'): (0, u'normal'), (123, u'normal'): (123, u'normal'), (12.3, u'normal'): (12, u'normal'), (None, u'thumb'): (0, u'thumb'), (u'', u'thumb'): (0, u'thumb'), (u'123', u'thumb'): (123, u'thumb'), (u'12.3', u'thumb'): (0, u'thumb'), (123, u'thumb'): (123, u'thumb'), (12.3, u'thumb'): (12, u'thumb'), (None, u'foo'): (0, u'normal'), (u'', u'foo'): (0, u'normal'), (u'123', u'foo'): (123, u'normal'), (u'12.3', u'foo'): (0, u'normal'), (123, u'foo'): (123, u'normal'), (12.3, u'foo'): (12, u'normal')}
    unicode_test_cases = {(u'', None): (0, u'normal'), (u'123', None): (123, u'normal'), (u'12.3', None): (0, u'normal'), (None, u''): (0, u'normal'), (u'', u''): (0, u'normal'), (u'123', u''): (123, u'normal'), (u'12.3', u''): (0, u'normal'), (123, u''): (123, u'normal'), (12.3, u''): (12, u'normal'), (None, u'normal'): (0, u'normal'), (u'', u'normal'): (0, u'normal'), (u'123', u'normal'): (123, u'normal'), (u'12.3', u'normal'): (0, u'normal'), (123, u'normal'): (123, u'normal'), (12.3, u'normal'): (12, u'normal'), (None, u'thumb'): (0, u'thumb'), (u'', u'thumb'): (0, u'thumb'), (u'123', u'thumb'): (123, u'thumb'), (u'12.3', u'thumb'): (0, u'thumb'), (123, u'thumb'): (123, u'thumb'), (12.3, u'thumb'): (12, u'thumb'), (None, u'foo'): (0, u'normal'), (u'', u'foo'): (0, u'normal'), (u'123', u'foo'): (123, u'normal'), (u'12.3', u'foo'): (0, u'normal'), (123, u'foo'): (123, u'normal'), (12.3, u'foo'): (12, u'normal')}
    for test in (test_cases, unicode_test_cases):
        for ((indexer_id, media_format), (expected_indexer_id, expected_media_format)) in six.iteritems(test):
            generic_media = GenericMedia(indexer_id, media_format)
            self.assertEqual(generic_media.indexer_id, expected_indexer_id)
            self.assertEqual(generic_media.media_format, expected_media_format)
