def test_field_checks(self):
        class InvalidListCharModel(TemporaryModel):
            field = ListCharField(models.CharField(), max_length=32)

        errors = InvalidListCharModel.check(actually_check=True)
        assert len(errors) == 1
        assert errors[0].id == 'django_mysql.E004'
        assert 'Base field for list has errors' in errors[0].msg
        assert errors[0].msg in 'max_length'
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_listcharfield.py/TestCheck.test_field_checks/swapped operands of `in`