added bootstrap and utils
This commit is contained in:
parent
adec996e40
commit
6b575da515
3 changed files with 108 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
from src.settings import Settings
|
||||
from src.tox import Tox
|
||||
from src.util import bin_to_string, string_to_bin
|
||||
import sys
|
||||
from src.profile import Profile
|
||||
import os
|
||||
|
@ -56,3 +57,12 @@ class TestProfile():
|
|||
Profile.save_profile(data)
|
||||
new_data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
||||
assert new_data == data
|
||||
|
||||
|
||||
class TestUtils():
|
||||
|
||||
def test_convert(self):
|
||||
id = 'C4CEB8C7AC607C6B374E2E782B3C00EA3A63B80D4910B8649CCACDD19F260819'
|
||||
data = string_to_bin(id)
|
||||
new_id = bin_to_string(data)
|
||||
assert id == new_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue