test update
This commit is contained in:
parent
dc05277a67
commit
64173860e1
@ -26,12 +26,19 @@ class TestTox():
|
|||||||
data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
||||||
try:
|
try:
|
||||||
tox = Tox(data, settings)
|
tox = Tox(data, settings)
|
||||||
|
except:
|
||||||
|
raise
|
||||||
|
assert 0
|
||||||
|
try:
|
||||||
key = tox.self_get_public_key()
|
key = tox.self_get_public_key()
|
||||||
assert key
|
except:
|
||||||
assert len(key.raw) == 32
|
raise
|
||||||
|
assert 0
|
||||||
|
assert len(key.raw) == 32
|
||||||
|
try:
|
||||||
del tox
|
del tox
|
||||||
except:
|
except:
|
||||||
assert 0
|
raise
|
||||||
|
|
||||||
|
|
||||||
class TestProfile():
|
class TestProfile():
|
||||||
|
Loading…
Reference in New Issue
Block a user