toxes tests fix

This commit is contained in:
ingvar1995 2017-02-11 20:23:08 +03:00
parent 3511031aff
commit 704344fae2

View file

@ -1,6 +1,6 @@
from toxygen.profile import * from toxygen.profile import *
from toxygen.tox_dns import tox_dns from toxygen.tox_dns import tox_dns
import toxygen.toxencryptsave as encr import toxygen.toxes as encr
import toxygen.messages as m import toxygen.messages as m
import time import time
@ -53,8 +53,8 @@ class TestEncryption:
def test_encr_decr(self): def test_encr_decr(self):
tox = tox_factory() tox = tox_factory()
data = tox.get_savedata() data = tox.get_savedata()
lib = encr.ToxEncryptSave() lib = encr.ToxES()
for password in ('easypassword', 'njvnjfnvaGGV6', 'toxygen'): for password in ('easypassword', 'njvnFjfn7vaGGV6', 'toxygen'):
lib.set_password(password) lib.set_password(password)
copy_data = data[:] copy_data = data[:]
new_data = lib.pass_encrypt(data) new_data = lib.pass_encrypt(data)