summaryrefslogtreecommitdiffstats
path: root/test/units/inventory
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/inventory
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/inventory')
-rw-r--r--test/units/inventory/test_host.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/units/inventory/test_host.py b/test/units/inventory/test_host.py
index c8f477145e..712ed302b7 100644
--- a/test/units/inventory/test_host.py
+++ b/test/units/inventory/test_host.py
@@ -69,10 +69,10 @@ class TestHost(unittest.TestCase):
def test_equals_none(self):
other = None
- self.hostA == other
- other == self.hostA
- self.hostA != other
- other != self.hostA
+ assert not (self.hostA == other)
+ assert not (other == self.hostA)
+ assert self.hostA != other
+ assert other != self.hostA
self.assertNotEqual(self.hostA, other)
def test_serialize(self):