mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
Name change for tests
This commit is contained in:
@@ -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')):
|
||||
|
||||
Reference in New Issue
Block a user