added test for api version

master
Kevin Froman 2020-09-07 05:13:36 +00:00
parent 104f71c0c3
commit d40bd85368
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@ -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

View File

@ -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)