Lines Matching refs:asn1Spec
26 decoder.decode('', asn1Spec='not an Asn1Item')
35 assert decoder.decode(12, asn1Spec=univ.Integer()) == univ.Integer(12)
38 assert decoder.decode(-12, asn1Spec=univ.Integer()) == univ.Integer(-12)
43 assert decoder.decode(True, asn1Spec=univ.Boolean()) == univ.Boolean(True)
46 assert decoder.decode(False, asn1Spec=univ.Boolean()) == univ.Boolean(False)
51 … assert decoder.decode('11111111', asn1Spec=univ.BitString()) == univ.BitString(hexValue='ff')
56 …assert decoder.decode('Quick brown fox', asn1Spec=univ.OctetString()) == univ.OctetString('Quick b…
61 assert decoder.decode(None, asn1Spec=univ.Null()) == univ.Null('')
66 …assert decoder.decode('1.3.6.11', asn1Spec=univ.ObjectIdentifier()) == univ.ObjectIdentifier('1.3.…
71 assert decoder.decode(1.33, asn1Spec=univ.Real()) == univ.Real(1.33)
91 … assert decoder.decode({'place-holder': None, 'first-name': 'xx', 'age': 33}, asn1Spec=self.s) == s
109 assert decoder.decode({'first-name': 'xx'}, asn1Spec=self.s) == s
119 assert decoder.decode('fox', asn1Spec=univ.Any()) == univ.Any('fox')