'Return a preset certificate status.'

def mock_cert(self, _user, _course_overview, _course_mode):

    if (self.cert_status is not None):
        return {'status': self.cert_status, 'can_unenroll': (self.cert_status not in DISABLE_UNENROLL_CERT_STATES)}
    else:
        return {}
