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