X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Ftest_wrap.py;h=78393e8914a4a16a58ec5fb7512074508bf38425;hb=5ecaafbe1a87f9a311a18574653e6dbc75a776b9;hp=e89a671954f5cb3f9855266a8711d6618620289b;hpb=4ff0adf8cb4b497daa634e2430a4fd015a2bb427;p=pygost.git diff --git a/pygost/test_wrap.py b/pygost/test_wrap.py index e89a671..78393e8 100644 --- a/pygost/test_wrap.py +++ b/pygost/test_wrap.py @@ -1,11 +1,10 @@ # 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 -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -32,7 +31,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 +48,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)