def test_use_index_primary(self):
        with CaptureLastQuery() as cap:
            list(Author.objects.use_index('PRIMARY'))
        assert ('USE INDEX (`PRIMARY`)') in cap.query
        used = used_indexes(cap.query)
        assert len(used) == 0 or 'PRIMARY' in used
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_models.py/QueryHintTests.test_use_index_primary/original