tor: Minor fixes

- Be a little bit more strict about Tor tests by requiring the module to
  be importable even when not running as root.
This commit is contained in:
Sunil Mohan Adapa 2015-12-04 10:14:47 +05:30
parent b96bb9d2cd
commit 7100429342

View File

@ -16,15 +16,15 @@
#
"""
Tests for tor module.
Tests for Tor module.
"""
import os
import unittest
from ..tor import is_apt_transport_tor_enabled, get_hs, get_status
euid = os.geteuid()
if euid == 0:
from ..tor import is_apt_transport_tor_enabled, get_hs, get_status
class TestTor(unittest.TestCase):