From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 12 Nov 2025 19:01:01 +0000 (-0500) Subject: Use assertNotEqual X-Git-Tag: rec-5.4.0-alpha1~95^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298ce2cd44c97e9cae952feb414118ea6ffcd012;p=thirdparty%2Fpdns.git Use assertNotEqual https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertNotEqual Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- 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)