test public key. sometimes it fails, so code in tox.py should be checked again
This commit is contained in:
parent
8df53eb6f9
commit
dc05277a67
@ -21,21 +21,18 @@ class TestSettings():
|
|||||||
|
|
||||||
class TestTox():
|
class TestTox():
|
||||||
|
|
||||||
def test_creation(self):
|
def test_public_key(self):
|
||||||
|
settings = Settings()
|
||||||
|
data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
||||||
try:
|
try:
|
||||||
tox = Tox('tox_save')
|
tox = Tox(data, settings)
|
||||||
assert tox.tox_options is not None
|
key = tox.self_get_public_key()
|
||||||
|
assert key
|
||||||
|
assert len(key.raw) == 32
|
||||||
del tox
|
del tox
|
||||||
except:
|
except:
|
||||||
assert 0
|
assert 0
|
||||||
|
|
||||||
def test_init(self):
|
|
||||||
try:
|
|
||||||
tox = Tox('tox_save')
|
|
||||||
assert tox.get_savedata_size()
|
|
||||||
except:
|
|
||||||
assert 0
|
|
||||||
|
|
||||||
|
|
||||||
class TestProfile():
|
class TestProfile():
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user