summaryrefslogtreecommitdiffstats
path: root/test/units/utils
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-02-07 23:00:38 +0100
committerGitHub <noreply@github.com>2023-02-07 23:00:38 +0100
commit1ba100a3b4749ba76603aee744fe40493dce593d (patch)
treec7bb547aa2b80173721bd414299da8593684d801 /test/units/utils
parentinclude_vars - document hash_behaviour + dir (#79790) (diff)
downloadansible-1ba100a3b4749ba76603aee744fe40493dce593d.tar.xz
ansible-1ba100a3b4749ba76603aee744fe40493dce593d.zip
Fix pointless statements in unit tests (#79940)
Diffstat (limited to 'test/units/utils')
-rw-r--r--test/units/utils/test_unsafe_proxy.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/units/utils/test_unsafe_proxy.py b/test/units/utils/test_unsafe_proxy.py
index 3c40a7a321..fbb0bcdc5f 100644
--- a/test/units/utils/test_unsafe_proxy.py
+++ b/test/units/utils/test_unsafe_proxy.py
@@ -91,12 +91,12 @@ def test_wrap_var_no_ref():
'text': 'text',
}
wrapped_thing = wrap_var(thing)
- thing is not wrapped_thing
- thing['foo'] is not wrapped_thing['foo']
- thing['bar'][0] is not wrapped_thing['bar'][0]
- thing['baz'][0] is not wrapped_thing['baz'][0]
- thing['none'] is not wrapped_thing['none']
- thing['text'] is not wrapped_thing['text']
+ assert thing is not wrapped_thing
+ assert thing['foo'] is not wrapped_thing['foo']
+ assert thing['bar'][0] is not wrapped_thing['bar'][0]
+ assert thing['baz'][0] is not wrapped_thing['baz'][0]
+ assert thing['none'] is wrapped_thing['none']
+ assert thing['text'] is not wrapped_thing['text']
def test_AnsibleUnsafeText():