From d5c13cf79a4615fe9f61fd9e73e50d49f706aaf2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 6 Jan 2026 10:28:52 -0500 Subject: [PATCH] Use assertIn Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- regression-tests.api/test_Zones.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/regression-tests.api/test_Zones.py b/regression-tests.api/test_Zones.py index 9d410b1988..25db863a3e 100644 --- a/regression-tests.api/test_Zones.py +++ b/regression-tests.api/test_Zones.py @@ -1718,8 +1718,8 @@ $NAME$ 1D IN SOA ns1.example.org. hostmaster.example.org. ( # note that we can't assume anything about the order of the records records = get_rrset(data1, 'a.' + name, 'A')['records'] self.assertEqual(len(records), 2) - self.assertTrue(a1 in records) - self.assertTrue(a3 in records) + self.assertIn(a1, records) + self.assertIn(a3, records) # get_rrset above has removed the timestamps from data1, fetch the # zone again, since we want to ensure the following operations do # not change anything. @@ -1817,9 +1817,9 @@ $NAME$ 1D IN SOA ns1.example.org. hostmaster.example.org. ( # note that we can't assume anything about the order of the records records = get_rrset(data, 'a.' + name, 'A')['records'] self.assertEqual(len(records), 3) - self.assertTrue(a1 in records) - self.assertTrue(a2 in records) - self.assertTrue(a4 in records) + self.assertIn(a1, records) + self.assertIn(a2, records) + self.assertIn(a4, records) def test_zone_disable_reenable(self): # This also tests that SOA-EDIT-API works. -- 2.47.3