Silence comparison-with-itself in tests

Test code performs comparison to itself in order to verify __eq__ and
__ne__ implementations.

See: https://pagure.io/freeipa/issue/7758
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes
2018-11-09 11:45:55 +01:00
parent dc2c71bff8
commit ec61f5de3c
3 changed files with 4 additions and 0 deletions

View File

@@ -913,6 +913,7 @@ class TestDN(unittest.TestCase):
# Test "in" membership
self.assertTrue(self.container_rdn1 in container_dn)
# pylint: disable=comparison-with-itself
self.assertTrue(container_dn in container_dn)
self.assertFalse(self.base_rdn1 in container_dn)