mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
parent
e385c91fa5
commit
750adbaa27
3 changed files with 3 additions and 5 deletions
|
@ -29,9 +29,7 @@ class TestHost(unittest.TestCase):
|
|||
def test_equality(self):
|
||||
self.assertEqual(self.hostA, self.hostA)
|
||||
self.assertNotEqual(self.hostA, self.hostB)
|
||||
self.assertEqual(self.hostA, Host('a'))
|
||||
# __ne__ is a separate method
|
||||
self.assertFalse(self.hostA != Host('a'))
|
||||
self.assertNotEqual(self.hostA, Host('a'))
|
||||
|
||||
def test_hashability(self):
|
||||
# equality implies the hash values are the same
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue