From 1b71b5c3f5df1c88f61ac2c57abe791f47027143 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 8 Jul 2017 03:00:11 -0300 Subject: [style] fix naming from review --- testing/tests/client/test_crypto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing') 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() -- cgit v1.2.3