def test_iter_smart_fk_string_primary_key_fails(self):
        with pytest.raises(ValueError) as excinfo:
            NameAuthorExtra.objects.iter_smart()
        assert "non-integer primary key" in str(excinfo.value)
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_models.py/SmartIteratorTests.test_iter_smart_fk_string_primary_key_fails/original