aboutsummaryrefslogtreecommitdiff
path: root/tests/codec/ber
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-10-16 23:45:38 +0200
committerGitHub <noreply@github.com>2017-10-16 23:45:38 +0200
commitd1f9acd3859b7e40494bd619ab2e1c52dd72379c (patch)
treee4b24cff7c18da7461f12f773173fe539157e344 /tests/codec/ber
parente9371571a198af2c49151155f7a8ca9aa72580b9 (diff)
downloadpyasn1-d1f9acd3859b7e40494bd619ab2e1c52dd72379c.tar.gz
Remove None initializer support (#91)
* `None` legacy initializer support removed * Default value for `Null` removed
Diffstat (limited to 'tests/codec/ber')
-rw-r--r--tests/codec/ber/test_encoder.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codec/ber/test_encoder.py b/tests/codec/ber/test_encoder.py
index ba91919..f87843c 100644
--- a/tests/codec/ber/test_encoder.py
+++ b/tests/codec/ber/test_encoder.py
@@ -746,11 +746,11 @@ class SequenceEncoderWithComponentsSchemaTestCase(BaseTestCase):
def __init(self):
self.s.clear()
- self.s.setComponentByPosition(0)
+ self.s.setComponentByPosition(0, '')
def __initWithOptional(self):
self.s.clear()
- self.s.setComponentByPosition(0)
+ self.s.setComponentByPosition(0, '')
self.s.setComponentByPosition(1, 'quick brown')
def __initWithDefaulted(self):
@@ -991,11 +991,11 @@ class SetEncoderWithComponentsSchemaTestCase(BaseTestCase):
def __init(self):
self.s.clear()
- self.s.setComponentByPosition(0)
+ self.s.setComponentByPosition(0, '')
def __initWithOptional(self):
self.s.clear()
- self.s.setComponentByPosition(0)
+ self.s.setComponentByPosition(0, '')
self.s.setComponentByPosition(1, 'quick brown')
def __initWithDefaulted(self):