From 298ce2cd44c97e9cae952feb414118ea6ffcd012 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:01:01 -0500 Subject: [PATCH] Use assertNotEqual https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertNotEqual Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- regression-tests.dnsdist/test_Basics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-tests.dnsdist/test_Basics.py b/regression-tests.dnsdist/test_Basics.py index ffbd1a636f..087926602a 100644 --- a/regression-tests.dnsdist/test_Basics.py +++ b/regression-tests.dnsdist/test_Basics.py @@ -142,7 +142,7 @@ class TestBasics(DNSDistTest): self.assertEqual(query, receivedQuery) self.assertEqual(expectedResponse.flags, receivedResponse.flags) self.assertEqual(expectedResponse.question, receivedResponse.question) - self.assertFalse(response.answer == receivedResponse.answer) + self.assertNotEqual(response.answer, receivedResponse.answer) self.assertEqual(len(receivedResponse.answer), 0) self.assertEqual(len(receivedResponse.authority), 0) self.assertEqual(len(receivedResponse.additional), 0) @@ -180,7 +180,7 @@ class TestBasics(DNSDistTest): self.assertEqual(query, receivedQuery) self.assertEqual(response.flags, receivedResponse.flags) self.assertEqual(response.question, receivedResponse.question) - self.assertFalse(response.answer == receivedResponse.answer) + self.assertNotEqual(response.answer, receivedResponse.answer) self.assertEqual(len(receivedResponse.answer), 0) self.assertEqual(len(receivedResponse.authority), 0) self.assertEqual(len(receivedResponse.additional), 0) -- 2.47.3