Merge "Replace assertEqual(None, *) with assertIsNone in the tests"

This commit is contained in:
Jenkins 2016-08-25 21:08:02 +00:00 committed by Gerrit Code Review
commit c8fa7ef289
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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):