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