def test_max_length_including_base(self):
        class InvalidSetCharFieldModel(TemporaryModel):
            field = SetCharField(
                models.CharField(max_length=32),
                size=2, max_length=32)

        errors = InvalidSetCharFieldModel.check(actually_check=True)
        assert len(errors) == 1
        assert errors[0].id == 'django_mysql.E003'
        assert errors[0].msg in 'Field can overrun'
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_setcharfield.py/TestCheck.test_max_length_including_base/swapped operands of `in`