def test_subquery(self):
        subq = Author.objects.all().values_list('id', flat=True)
        output = Author.objects.filter(id__in=subq) \
                               .pt_visual_explain(display=False)
        assert "possible_keys" in output
        assert "testapp_author" in output
        assert "rows" in output
        assert "Table" in output
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_models.py/VisualExplainTests.test_subquery/original