'Test that the last accessed courseware link is not shown if there
is no course content.'

def test_last_accessed_courseware_not_shown(self):

    SelfPacedConfiguration(enable_course_home_improvements=True).save()
    url = reverse('info', args=(unicode(self.course.id),))
    response = self.client.get(url)
    content = pq(response.content)
    self.assertEqual(content('.page-header-secondary    a').length, 0)
