Name change for tests

This commit is contained in:
Joona Hoikkala
2016-04-16 15:39:31 +03:00
parent 0773f626f9
commit 7563d65cb3
+3 -3
View File
@@ -344,7 +344,7 @@ class OsInfoTest(unittest.TestCase):
"""Test OS / distribution detection"""
def test_systemd_os_release(self):
from letsencrypt.le_util import get_os_info, get_systemd_os_info
from certbot.le_util import get_os_info, get_systemd_os_info
with mock.patch('os.path.isfile', return_value=True):
self.assertEqual(get_os_info(
test_util.vector_path("os-release"))[0], 'systemdos')
@@ -354,9 +354,9 @@ class OsInfoTest(unittest.TestCase):
with mock.patch('os.path.isfile', return_value=False):
self.assertEqual(get_systemd_os_info(), ("", ""))
@mock.patch("letsencrypt.le_util.subprocess.Popen")
@mock.patch("certbot.le_util.subprocess.Popen")
def test_non_systemd_os_info(self, popen_mock):
from letsencrypt.le_util import get_os_info, get_python_os_info
from certbot.le_util import get_os_info, get_python_os_info
with mock.patch('os.path.isfile', return_value=False):
with mock.patch('platform.system_alias',
return_value=('NonSystemD', '42', '42')):