tests update, added program version string

This commit is contained in:
ingvar1995 2016-02-21 23:25:37 +03:00
parent ae3e84e3d2
commit 8dae4fcad9
3 changed files with 26 additions and 4 deletions

View file

@ -1,12 +1,15 @@
program_version = '0.0.1 (alpha)'
def log(data):
with open("logs.log", "a") as fl:
with open('logs.log', 'a') as fl:
fl.write(str(data))
def string_to_bin(tox_id):
return tox_id.decode("hex")
return tox_id.decode('hex')
def bin_to_string(raw_id):