mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
[PR #10115/86507e8a backport][stable-10] lxc: fix unit tests (#10118)
lxc: fix unit tests (#10115)
Don't compare strings passed through set_option()/get_option() with 'is'.
(cherry picked from commit 86507e8aca
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
301483a7f3
commit
e116cccb82
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue