diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-07-22 22:33:39 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-07-22 22:33:39 +0200 |
commit | 021c5e404a0ae3aedaa707c2a421ec18613251fa (patch) | |
tree | 59ce285cda420e5e0512b68268078532aec2c613 /tests | |
parent | f0cd6b98e10e176f0e6c8bee6970cc38d87497d0 (diff) | |
download | pyasn1-git-021c5e404a0ae3aedaa707c2a421ec18613251fa.tar.gz |
.componentType refactored into a read-only attribute
Diffstat (limited to 'tests')
-rw-r--r-- | tests/type/test_univ.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/type/test_univ.py b/tests/type/test_univ.py index 37d3b26..74bb15a 100644 --- a/tests/type/test_univ.py +++ b/tests/type/test_univ.py @@ -6,7 +6,7 @@ # import sys import math -from pyasn1.type import univ, tag, constraint, namedtype, unnamedtype, namedval, error +from pyasn1.type import univ, tag, constraint, namedtype, namedval, error from pyasn1.compat.octets import str2octs, ints2octs, octs2ints from pyasn1.error import PyAsn1Error @@ -770,8 +770,7 @@ class SequenceOf(unittest.TestCase): def testRepr(self): assert eval(repr(self.s1.clone().setComponents('a', 'b')), - {'UnnamedType': unnamedtype.UnnamedType, - 'SequenceOf': univ.SequenceOf, + {'SequenceOf': univ.SequenceOf, 'OctetString': univ.OctetString}) == self.s1.clone().setComponents( 'a', 'b'), 'repr() fails' @@ -861,7 +860,7 @@ class SequenceOf(unittest.TestCase): assert 0, 'size spec fails' def testGetComponentTagMap(self): - assert self.s1.componentType.asn1Object.tagMap.presentTypes == { + assert self.s1.componentType.tagMap.presentTypes == { univ.OctetString.tagSet: univ.OctetString('') } |