diff --git a/designate/tests/unit/test_agent/test_backends/test_djbdns.py b/designate/tests/unit/test_agent/test_backends/test_djbdns.py index a69794301..02d803b28 100644 --- a/designate/tests/unit/test_agent/test_backends/test_djbdns.py +++ b/designate/tests/unit/test_agent/test_backends/test_djbdns.py @@ -81,7 +81,7 @@ class DjbdnsAgentBackendUnitTestCase(TestCase): self.backend._resolver.query.side_effect = RuntimeError('foo') serial = self.backend.find_zone_serial('example.com') - self.assertEqual(None, serial) + self.assertIsNone(serial) @mock.patch('designate.backend.agent_backend.impl_djbdns.execute') def test_create_zone(self, mock_exe): diff --git a/designate/tests/unit/test_agent/test_backends/test_gdnsd.py b/designate/tests/unit/test_agent/test_backends/test_gdnsd.py index bf5ca23dd..84aa2959e 100644 --- a/designate/tests/unit/test_agent/test_backends/test_gdnsd.py +++ b/designate/tests/unit/test_agent/test_backends/test_gdnsd.py @@ -76,7 +76,7 @@ class GdnsdAgentBackendUnitTestCase(TestCase): self.backend._resolver.query.side_effect = RuntimeError('foo') serial = self.backend.find_zone_serial('example.com') - self.assertEqual(None, serial) + self.assertIsNone(serial) @mock.patch('designate.backend.agent_backend.impl_gdnsd.os.remove') def test_delete_zone(self, mock_osremove):