diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-11-14 11:55:22 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-11-14 11:55:22 +0100 |
commit | 81865c1e67a33dbfcbb7a8f4ce9cfb12cc093295 (patch) | |
tree | 816eaab587cb7c0d81b952e0a1f6f33f392f3af4 /tests/type/test_char.py | |
parent | c34f53e7ee787577482f9e1b67ea507299dd3be3 (diff) | |
download | pyasn1-81865c1e67a33dbfcbb7a8f4ce9cfb12cc093295.tar.gz |
serialization -> serialisation nitpicks
Diffstat (limited to 'tests/type/test_char.py')
-rw-r--r-- | tests/type/test_char.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/type/test_char.py b/tests/type/test_char.py index 1301a50..17d6077 100644 --- a/tests/type/test_char.py +++ b/tests/type/test_char.py @@ -52,7 +52,7 @@ class AbstractStringTestCase(object): except PyAsn1Error: assert False, 'Size constraint failed' - def testSerialized(self): + def testSerialised(self): if sys.version_info[0] < 3: assert str(self.asn1String) == self.pythonString.encode(self.encoding), '__str__() fails' else: @@ -114,17 +114,17 @@ class AbstractStringTestCase(object): def testSchemaPickling(self): old_asn1 = self.asn1Type() - serialized = pickle.dumps(old_asn1) - assert serialized - new_asn1 = pickle.loads(serialized) + serialised = pickle.dumps(old_asn1) + assert serialised + new_asn1 = pickle.loads(serialised) assert type(new_asn1) == self.asn1Type assert old_asn1.isSameTypeWith(new_asn1) def testValuePickling(self): old_asn1 = self.asn1String - serialized = pickle.dumps(old_asn1) - assert serialized - new_asn1 = pickle.loads(serialized) + serialised = pickle.dumps(old_asn1) + assert serialised + new_asn1 = pickle.loads(serialised) assert new_asn1 == self.asn1String |