summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-07-08 03:00:11 -0300
committerdrebs <drebs@leap.se>2017-07-18 15:22:37 -0300
commit1b71b5c3f5df1c88f61ac2c57abe791f47027143 (patch)
treef2f23bd1cf27e44a8a766cb2e884346c9eb4af66 /testing
parent361eb8d7121cc8abb94d9fef784d5ff2b27722d0 (diff)
[style] fix naming from review
Diffstat (limited to 'testing')
-rw-r--r--testing/tests/client/test_crypto.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/client/test_crypto.py b/testing/tests/client/test_crypto.py
index 2a93081c..62a13df7 100644
--- a/testing/tests/client/test_crypto.py
+++ b/testing/tests/client/test_crypto.py
@@ -140,7 +140,7 @@ class BlobTestCase(unittest.TestCase):
assert len(preamble) == _preamble.PACMAN.size
unpacked_data = _preamble.PACMAN.unpack(preamble)
magic, sch, meth, ts, iv, doc_id, rev, _ = unpacked_data
- assert magic == _crypto.BLOB_SIGNATURE_MAGIC
+ assert magic == _crypto.MAGIC
assert sch == 1
assert meth == _crypto.ENC_METHOD.aes_256_gcm
assert iv == self.blob.iv
@@ -314,7 +314,7 @@ class PreambleTestCase(unittest.TestCase):
def test_preamble_starts_with_magic_signature(self):
preamble = self.blob._encode_preamble()
- assert preamble.startswith(_crypto.BLOB_SIGNATURE_MAGIC)
+ assert preamble.startswith(_crypto.MAGIC)
def test_preamble_has_cipher_metadata(self):
preamble = self.blob._encode_preamble()