def setUp(self): self.c1 = constraint.PermittedAlphabetConstraint('A', 'B', 'C') self.c2 = constraint.PermittedAlphabetConstraint('DEF')
def setUp(self): self.v1 = 'A', 'B' self.v2 = 'C', 'D' self.c1 = constraint.PermittedAlphabetConstraint(*self.v1) self.c2 = constraint.PermittedAlphabetConstraint(*self.v2)
1, 2) id_pe_JWTClaimConstraints = _OID(1, 3, 6, 1, 5, 5, 7, 1, 27) class ServiceProviderCode(char.IA5String): pass class TelephoneNumber(char.IA5String): pass TelephoneNumber.subtypeSpec = constraint.ConstraintsIntersection( constraint.ValueSizeConstraint(1, 15), constraint.PermittedAlphabetConstraint('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '#', '*')) class TelephoneNumberRange(univ.Sequence): pass TelephoneNumberRange.componentType = namedtype.NamedTypes( namedtype.NamedType('start', TelephoneNumber()), namedtype.NamedType( 'count', univ.Integer().subtype( subtypeSpec=constraint.ValueRangeConstraint(2, MAX)))) class TNEntry(univ.Choice):
class HeaderFieldName(char.VisibleString): subtypeSpec = (constraint.PermittedAlphabetConstraint(*string.printable) - constraint.PermittedAlphabetConstraint(':'))