def METHOD_NAME(self):
    with self.assertWarnsRegex(SyntaxWarning,
            r"^Value -1 of enumeration member 'A' is signed, but the enumeration "
            r"shape is unsigned\(1\)$"):
        class EnumA(Enum, shape=unsigned(1)):
            A = -1