def METHOD_NAME(self):
    validator = PasswordStrengthValidator(user_input_fields=["foo"])
    with pytest.raises(ValidationError) as exc:
        validator({}, pretend.stub())
    assert str(exc.value) == "Invalid field name: 'foo'"