def test_force_index_invalid_for(self):
        with pytest.raises(ValueError) as excinfo:
            Author.objects.force_index('a', for_='INVALID')
        assert "for_ must be one of" in str(excinfo.value)
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_models.py/QueryHintTests.test_force_index_invalid_for/original