def METHOD_NAME(db):
    question = Question.objects.first()
    question.locked = True
    question.save()
    with pytest.raises(ValidationError):
        QuestionLockedValidator(question)({
            'questionset': question.questionset,
            'locked': True
        })