summaryrefslogtreecommitdiff
path: root/tests/unittests/test_distros/test_netbsd.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_distros/test_netbsd.py')
-rw-r--r--tests/unittests/test_distros/test_netbsd.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/unittests/test_distros/test_netbsd.py b/tests/unittests/test_distros/test_netbsd.py
deleted file mode 100644
index 11a68d2a..00000000
--- a/tests/unittests/test_distros/test_netbsd.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import cloudinit.distros.netbsd
-
-import pytest
-import unittest.mock as mock
-
-
-@pytest.mark.parametrize('with_pkgin', (True, False))
-@mock.patch("cloudinit.distros.netbsd.os")
-def test_init(m_os, with_pkgin):
- print(with_pkgin)
- m_os.path.exists.return_value = with_pkgin
- cfg = {}
-
- distro = cloudinit.distros.netbsd.NetBSD("netbsd", cfg, None)
- expectation = ['pkgin', '-y', 'full-upgrade'] if with_pkgin else None
- assert distro.pkg_cmd_upgrade_prefix == expectation
- assert [mock.call('/usr/pkg/bin/pkgin')] == m_os.path.exists.call_args_list