'Check that the css class and the status message are not in the dashboard html.'

@unittest.skipUnless((settings.ROOT_URLCONF == 'lms.urls'), 'Test    only    valid    in    lms')
def _check_verification_status_off(self, mode, value):

    CourseModeFactory.create(mode_slug=mode, course_id=self.course.id)
    CourseEnrollment.enroll(self.user, self.course.location.course_key, mode=mode)
    if (mode == 'verified'):
        attempt = SoftwareSecurePhotoVerification.objects.create(user=self.user)
        attempt.mark_ready()
        attempt.submit()
        attempt.approve()
    response = self.client.get(reverse('dashboard'))
    if (mode == 'audit'):
        self.assertEqual(pq(response.content)('.sts-enrollment').length, 0)
    else:
        self.assertNotContains(response, 'class="course    {0}"'.format(mode))
        self.assertNotContains(response, value)
