def test_invalid_base_fields(self):
        class InvalidListCharModel(TemporaryModel):
            field = ListCharField(
                models.ForeignKey('testapp.Author'),
                max_length=32
            )

        errors = InvalidListCharModel.check(actually_check=True)
        assert len(errors) == 1
        assert errors[0].id == 'django_mysql.E005'
        assert 'Base field for list must be' in errors[0].msg
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_listcharfield.py/TestCheck.test_invalid_base_fields/original