summaryrefslogtreecommitdiff
path: root/tests/type
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/type
parent4ad415d71beb6b466842e6c32ec6387b88a3dbae (diff)
downloadpyasn1-git-e5c30776b510a88f760ca701558778b08a591e9d.tar.gz
Fix some typos and prepare for 0.4.5
Diffstat (limited to 'tests/type')
-rw-r--r--tests/type/test_constraint.py3
-rw-r--r--tests/type/test_tag.py8
-rw-r--r--tests/type/test_univ.py2
3 files changed, 6 insertions, 7 deletions
diff --git a/tests/type/test_constraint.py b/tests/type/test_constraint.py
index 2cdc66e..78d4e31 100644
--- a/tests/type/test_constraint.py
+++ b/tests/type/test_constraint.py
@@ -25,7 +25,7 @@ class SingleValueConstraintTestCase(BaseTestCase):
self.c2 = constraint.SingleValueConstraint(3, 4)
def testCmp(self):
- assert self.c1 == self.c1, 'comparation fails'
+ assert self.c1 == self.c1, 'comparison fails'
def testHash(self):
assert hash(self.c1) != hash(self.c2), 'hash() fails'
@@ -195,7 +195,6 @@ class InnerTypeConstraintTestCase(BaseTestCase):
try:
c(4, 0)
except error.ValueConstraintError:
- raise
assert 0, 'constraint check fails'
try:
c(4, 1)
diff --git a/tests/type/test_tag.py b/tests/type/test_tag.py
index e0cf483..10e76d5 100644
--- a/tests/type/test_tag.py
+++ b/tests/type/test_tag.py
@@ -31,10 +31,10 @@ class TagReprTestCase(TagTestCaseBase):
class TagCmpTestCase(TagTestCaseBase):
def testCmp(self):
- assert self.t1 == self.t2, 'tag comparation fails'
+ assert self.t1 == self.t2, 'tag comparison fails'
def testHash(self):
- assert hash(self.t1) == hash(self.t2), 'tag hash comparation fails'
+ assert hash(self.t1) == hash(self.t2), 'tag hash comparison fails'
def testSequence(self):
assert self.t1[0] == self.t2[0] and \
@@ -62,13 +62,13 @@ class TagSetReprTestCase(TagSetTestCaseBase):
class TagSetCmpTestCase(TagSetTestCaseBase):
def testCmp(self):
- assert self.ts1 == self.ts2, 'tag set comparation fails'
+ assert self.ts1 == self.ts2, 'tag set comparison fails'
def testHash(self):
assert hash(self.ts1) == hash(self.ts2), 'tag set hash comp. fails'
def testLen(self):
- assert len(self.ts1) == len(self.ts2), 'tag length comparation fails'
+ assert len(self.ts1) == len(self.ts2), 'tag length comparison fails'
class TaggingTestSuite(TagSetTestCaseBase):
diff --git a/tests/type/test_univ.py b/tests/type/test_univ.py
index ab44f3a..44a3add 100644
--- a/tests/type/test_univ.py
+++ b/tests/type/test_univ.py
@@ -1065,7 +1065,7 @@ class SequenceOf(BaseTestCase):
else:
assert False, 'IndexError not raised'
- # this is a deviation from standart sequence protocol
+ # this is a deviation from standard sequence protocol
assert not s[1]
def testSetItem(self):