added test for api version
parent
104f71c0c3
commit
d40bd85368
|
@ -13,7 +13,7 @@ src/data/*
|
||||||
src/data-backup/*
|
src/data-backup/*
|
||||||
run.sh
|
run.sh
|
||||||
src/.onionr-lock
|
src/.onionr-lock
|
||||||
|
daemon-true.txt
|
||||||
.vscode/tags
|
.vscode/tags
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,9 @@ from utils import identifyhome, createdirs
|
||||||
from etc import onionrvalues
|
from etc import onionrvalues
|
||||||
|
|
||||||
class TestOnionrValues(unittest.TestCase):
|
class TestOnionrValues(unittest.TestCase):
|
||||||
|
def test_api_version(self):
|
||||||
|
self.assertEqual(onionrvalues.API_VERSION, '1')
|
||||||
|
|
||||||
def test_default_expire(self):
|
def test_default_expire(self):
|
||||||
self.assertEqual(onionrvalues.DEFAULT_EXPIRE, 2678400)
|
self.assertEqual(onionrvalues.DEFAULT_EXPIRE, 2678400)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue