'Test that the correct steps are highlighted.'

def _test_progress_display(self, completed, current):

    r = self.client.get(self.url)
    progress = pq(r.content)('#submission-progress')
    completed_found = progress.find('.completed')
    for (idx, step) in enumerate(completed):
        li = completed_found.eq(idx)
        eq_(li.text(), unicode(mkt.APP_STEPS_TITLE[step]))
    terms_link = progress.find('.terms    a')
    if ('terms' in completed):
        eq_(terms_link.attr('href'), reverse('mkt.developers.docs', args=['policies', 'agreement']))
    else:
        eq_(terms_link.length, 0)
    eq_(progress.find('.current').text(), unicode(mkt.APP_STEPS_TITLE[current]))
