'Set the user\'s photo verification status.'

def _set_verification_status(self, status):

    attempt = SoftwareSecurePhotoVerification.objects.create(user=self.user)
    if (status in ['submitted', 'approved', 'expired', 'denied', 'error']):
        attempt.mark_ready()
        attempt.submit()
    if (status in ['approved', 'expired']):
        attempt.approve()
    elif (status == 'denied'):
        attempt.deny('Denied!')
    elif (status == 'error'):
        attempt.system_error('Error!')
    if (status == 'expired'):
        days_good_for = settings.VERIFY_STUDENT['DAYS_GOOD_FOR']
        attempt.created_at = (datetime.now(pytz.UTC) - timedelta(days=(days_good_for + 1)))
        attempt.save()
