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

        errors = InvalidSetCharFieldModel.check(actually_check=True)
        assert len(errors) == 1
        assert errors[0].id == 'django_mysql.E002'
        assert errors[0].msg in 'Base field for set must be'
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_setcharfield.py/TestCheck.test_invalid_base_fields/swapped operands of `in`