diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-03-12 11:12:13 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-03-12 11:48:45 +0100 |
commit | 7b6b472d0aa9a7b052e599bfcc12712b50d7339a (patch) | |
tree | eacfc6d2094727006d683c8afd1bcfe9ce25f04d /tests/codec/ber/test_decoder.py | |
parent | d94654b0d31896f875cfcc2e8c13c5c69a5dcb83 (diff) | |
download | pyasn1-7b6b472d0aa9a7b052e599bfcc12712b50d7339a.tar.gz |
.getComponent*() changed to lazily instantiate underlying type
Also:
* SetOf/SequenceOf types can not have "holes" anymore
* optional/default components of constructed types refactored for better efficiency and flexibility.
Diffstat (limited to 'tests/codec/ber/test_decoder.py')
-rw-r--r-- | tests/codec/ber/test_decoder.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/codec/ber/test_decoder.py b/tests/codec/ber/test_decoder.py index 9d6f5e3..9f07425 100644 --- a/tests/codec/ber/test_decoder.py +++ b/tests/codec/ber/test_decoder.py @@ -480,7 +480,6 @@ class SequenceDecoderTestCase(unittest.TestCase): self.s.setComponentByPosition(0, univ.Null(null)) self.s.setComponentByPosition(1, univ.OctetString('quick brown')) self.s.setComponentByPosition(2, univ.Integer(1)) - self.s.setDefaultComponents() def testWithOptionalAndDefaultedDefMode(self): assert decoder.decode( @@ -541,26 +540,22 @@ class GuidedSequenceDecoderTestCase(unittest.TestCase): def __init(self): self.s.clear() self.s.setComponentByPosition(0, univ.Null(null)) - self.s.setDefaultComponents() def __initWithOptional(self): self.s.clear() self.s.setComponentByPosition(0, univ.Null(null)) self.s.setComponentByPosition(1, univ.OctetString('quick brown')) - self.s.setDefaultComponents() def __initWithDefaulted(self): self.s.clear() self.s.setComponentByPosition(0, univ.Null(null)) self.s.setComponentByPosition(2, univ.Integer(1)) - self.s.setDefaultComponents() def __initWithOptionalAndDefaulted(self): self.s.clear() self.s.setComponentByPosition(0, univ.Null(null)) self.s.setComponentByPosition(1, univ.OctetString('quick brown')) self.s.setComponentByPosition(2, univ.Integer(1)) - self.s.setDefaultComponents() def testDefMode(self): self.__init() |