From e2af16b03f4fd127ae329fc2f059b204044b624f Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 10 May 2025 15:12:36 +0200 Subject: [PATCH] [PR #10115/86507e8a backport][stable-9] lxc: fix unit tests (#10117) lxc: fix unit tests (#10115) Don't compare strings passed through set_option()/get_option() with 'is'. (cherry picked from commit 86507e8aca3b292bdc167ecb0de885b0846d8138) Co-authored-by: Felix Fontein --- tests/unit/plugins/connection/test_lxc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/plugins/connection/test_lxc.py b/tests/unit/plugins/connection/test_lxc.py index 5c8f187691..e65df3315c 100644 --- a/tests/unit/plugins/connection/test_lxc.py +++ b/tests/unit/plugins/connection/test_lxc.py @@ -117,14 +117,14 @@ class TestLXCConnectionClass(): # first call initializes the connection conn._connect() - assert conn.container_name is container1_name + assert conn.container_name == container1_name assert conn.container is not None assert conn.container.name == container1_name container1 = conn.container # second call is basically a no-op conn._connect() - assert conn.container_name is container1_name + assert conn.container_name == container1_name assert conn.container is container1 assert conn.container.name == container1_name