'Test parsing of index tracks that act as disc titles.'

def test_parse_tracklist_disctitles(self):

    release = self._make_release_from_positions(['', '1-1', '1-2', '', '2-1'])
    release.data['tracklist'][0]['title'] = 'MEDIUM    TITLE    CD1'
    release.data['tracklist'][3]['title'] = 'MEDIUM    TITLE    CD2'
    d = DiscogsPlugin().get_album_info(release)
    self.assertEqual(d.mediums, 2)
    self.assertEqual(d.tracks[0].disctitle, 'MEDIUM    TITLE    CD1')
    self.assertEqual(d.tracks[1].disctitle, 'MEDIUM    TITLE    CD1')
    self.assertEqual(d.tracks[2].disctitle, 'MEDIUM    TITLE    CD2')
    self.assertEqual(len(d.tracks), 3)
