aboutsummaryrefslogtreecommitdiff
path: root/tests/codec/ber/test_decoder.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-07-29 08:48:50 +0200
committerIlya Etingof <etingof@gmail.com>2018-07-29 09:23:39 +0200
commite5c30776b510a88f760ca701558778b08a591e9d (patch)
treecc44e15cac511603b9437bc0c80c989af091d4b3 /tests/codec/ber/test_decoder.py
parent4ad415d71beb6b466842e6c32ec6387b88a3dbae (diff)
downloadpyasn1-e5c30776b510a88f760ca701558778b08a591e9d.tar.gz
Fix some typos and prepare for 0.4.5
Diffstat (limited to 'tests/codec/ber/test_decoder.py')
-rw-r--r--tests/codec/ber/test_decoder.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/codec/ber/test_decoder.py b/tests/codec/ber/test_decoder.py
index d456949..e8e17f0 100644
--- a/tests/codec/ber/test_decoder.py
+++ b/tests/codec/ber/test_decoder.py
@@ -333,7 +333,7 @@ class ObjectIdentifierDecoderTestCase(BaseTestCase):
except PyAsn1Error:
pass
else:
- assert 0, 'Leading 0x80 tolarated'
+ assert 0, 'Leading 0x80 tolerated'
def testLeading0x80Case2(self):
try:
@@ -343,7 +343,7 @@ class ObjectIdentifierDecoderTestCase(BaseTestCase):
except PyAsn1Error:
pass
else:
- assert 0, 'Leading 0x80 tolarated'
+ assert 0, 'Leading 0x80 tolerated'
def testLeading0x80Case3(self):
try:
@@ -353,7 +353,7 @@ class ObjectIdentifierDecoderTestCase(BaseTestCase):
except PyAsn1Error:
pass
else:
- assert 0, 'Leading 0x80 tolarated'
+ assert 0, 'Leading 0x80 tolerated'
def testLeading0x80Case4(self):
try:
@@ -363,7 +363,7 @@ class ObjectIdentifierDecoderTestCase(BaseTestCase):
except PyAsn1Error:
pass
else:
- assert 0, 'Leading 0x80 tolarated'
+ assert 0, 'Leading 0x80 tolerated'
def testTagFormat(self):
try:
@@ -379,7 +379,7 @@ class ObjectIdentifierDecoderTestCase(BaseTestCase):
except PyAsn1Error:
pass
else:
- assert 0, 'zero length tolarated'
+ assert 0, 'zero length tolerated'
def testIndefiniteLength(self):
try:
@@ -429,12 +429,12 @@ class RealDecoderTestCase(BaseTestCase):
ints2octs((9, 3, 160, 254, 1))
) == (univ.Real((1, 2, -8)), null)
- def testBin4(self): # check exponenta = 0
+ def testBin4(self): # check exponent = 0
assert decoder.decode( # (1, 2, 0) encoded with base = 2
ints2octs((9, 3, 128, 0, 1))
) == (univ.Real((1, 2, 0)), null)
- def testBin5(self): # case of 2 octs for exponenta and negative exponenta
+ def testBin5(self): # case of 2 octs for exponent and negative exponent
assert decoder.decode( # (3, 2, -1020) encoded with base = 16
ints2octs((9, 4, 161, 255, 1, 3))
) == (univ.Real((3, 2, -1020)), null)
@@ -1092,7 +1092,7 @@ class SetDecoderWithSchemaTestCase(BaseTestCase):
ints2octs((49, 15, 5, 0, 4, 11, 113, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110)), asn1Spec=self.s
) == (self.s, null)
- def testWithOptionaIndefMode(self):
+ def testWithOptionalIndefMode(self):
self.__initWithOptional()
assert decoder.decode(
ints2octs((49, 128, 5, 0, 36, 128, 4, 11, 113, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 0, 0, 0, 0)), asn1Spec=self.s