'Test the conversion of discogs `position` to medium, medium_index
and subtrack_index.'

def test_parse_position(self):

    positions = [('1', (None, '1', None)), ('A12', ('A', '12', None)), ('12-34', ('12-', '34', None)), ('CD1-1', ('CD1-', '1', None)), ('1.12', (None, '1', '12')), ('12.a', (None, '12', 'A')), ('12.34', (None, '12', '34')), ('1ab', (None, '1', 'AB')), ('IV', ('IV', None, None))]
    d = DiscogsPlugin()
    for (position, expected) in positions:
        self.assertEqual(d.get_track_index(position), expected)
