X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fcommon.git;a=blobdiff_plain;f=osm_common%2Ftests%2Ftest_dbbase.py;h=918ced700f2b1f0ca8d51154145633a651fc74db;hp=64bfb3e223c301afcc89c3bb4808e023bd96f87f;hb=cfc5272864156b706d7147fc4e7c0fe46dc386c8;hpb=136f29577fd83028369c2c4fc4c60f738e0d26d3 diff --git a/osm_common/tests/test_dbbase.py b/osm_common/tests/test_dbbase.py index 64bfb3e..918ced7 100644 --- a/osm_common/tests/test_dbbase.py +++ b/osm_common/tests/test_dbbase.py @@ -68,11 +68,11 @@ def test_del_one(db_base): class TestEncryption(unittest.TestCase): def setUp(self): master_password = "Setting a long master password with numbers 123 and capitals AGHBNHD and symbols %&8)!'" - db_base1 = DbBase(master_password=master_password) + db_base1 = DbBase() db_base2 = DbBase() # set self.secret_key obtained when connect - db_base1.secret_key = DbBase._join_passwords(urandom(32), db_base1.master_password) - db_base2.secret_key = DbBase._join_passwords(urandom(32), db_base2.master_password) + db_base1.secret_key = DbBase._join_passwords(urandom(32), master_password) + db_base2.secret_key = DbBase._join_passwords(urandom(32), None) self.db_base = [db_base1, db_base2] def test_encrypt_decrypt(self):