def test_is_container_with_systemd_non_container(self,
call,
init_is_systemd,
mock_os):
init_is_systemd.return_value = True
call.return_value = 1
self.assertFalse(host.is_container())
call.assert_called_with(['systemd-detect-virt', '--container'])
评论列表
文章目录