Private Decentralized Communication Network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
537 B

#!/usr/bin/env python3
import sys, os
import unittest, uuid
from utils import identifyhome
class IdentifyHomeTest(unittest.TestCase):
def test_standard_linux(self):
del os.environ["ONIONR_HOME"]
self.assertEqual(identifyhome.identify_home(), os.path.expanduser('~') + '/.local/share/onionr/')
def test_environ(self):
os.environ["ONIONR_HOME"] = "testhome"
self.assertEqual(os.getcwd() + "/testhome/", identifyhome.identify_home())