X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Ftest_wrap.py;h=e419a8e3cebb1591e8108ab0ae4fabb634020ffa;hb=244469e3eb8ee0794a0db7413bc600e20ce22b4f;hp=e89a671954f5cb3f9855266a8711d6618620289b;hpb=4ff0adf8cb4b497daa634e2430a4fd015a2bb427;p=pygost.git diff --git a/pygost/test_wrap.py b/pygost/test_wrap.py index e89a671..e419a8e 100644 --- a/pygost/test_wrap.py +++ b/pygost/test_wrap.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyGOST -- Pure Python GOST cryptographic functions library -# Copyright (C) 2015-2018 Sergey Matveev +# Copyright (C) 2015-2019 Sergey Matveev # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ class WrapGostTest(TestCase): ukm = urandom(8) wrapped = wrap_gost(ukm, kek, cek) unwrapped = unwrap_gost(kek, wrapped) - self.assertEqual(unwrapped, cek) + self.assertSequenceEqual(unwrapped, cek) def test_invalid_length(self): with self.assertRaises(ValueError): @@ -49,4 +49,4 @@ class WrapCryptoproTest(TestCase): ukm = urandom(8) wrapped = wrap_cryptopro(ukm, kek, cek) unwrapped = unwrap_cryptopro(kek, wrapped) - self.assertEqual(unwrapped, cek) + self.assertSequenceEqual(unwrapped, cek)