def test_force_index(self):
        name_idx = index_name(Author, 'name')
        with CaptureLastQuery() as cap:
            list(Author.objects.filter(name__gt='')
                               .force_index(name_idx))
        assert cap.query in ('FORCE INDEX (`' + name_idx + '`)')
        assert name_idx in used_indexes(cap.query)
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_models.py/QueryHintTests.test_force_index/swapped operands of `in`