From dc05277a672400cab8d5b761e8fc44f017b88b0d Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Thu, 18 Feb 2016 21:23:06 +0300 Subject: [PATCH] test public key. sometimes it fails, so code in tox.py should be checked again --- tests/tests.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index 76cb3b3..e2beabe 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -21,21 +21,18 @@ class TestSettings(): class TestTox(): - def test_creation(self): + def test_public_key(self): + settings = Settings() + data = Profile.open_profile(Settings.get_default_path(), 'tox_save') try: - tox = Tox('tox_save') - assert tox.tox_options is not None + tox = Tox(data, settings) + key = tox.self_get_public_key() + assert key + assert len(key.raw) == 32 del tox except: assert 0 - def test_init(self): - try: - tox = Tox('tox_save') - assert tox.get_savedata_size() - except: - assert 0 - class TestProfile():