diff options
Diffstat (limited to 'designate/tests/unit/mdns/test_notify.py')
-rw-r--r-- | designate/tests/unit/mdns/test_notify.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/designate/tests/unit/mdns/test_notify.py b/designate/tests/unit/mdns/test_notify.py index 6174ac08..29160449 100644 --- a/designate/tests/unit/mdns/test_notify.py +++ b/designate/tests/unit/mdns/test_notify.py @@ -20,7 +20,6 @@ import dns.rdataclass import dns.rdatatype import mock -import designate.mdns.base as mdnsbase import designate.mdns.notify as notify import designate.tests from designate.tests.unit import RoObject @@ -42,24 +41,6 @@ class MdnsNotifyTest(designate.tests.TestCase): 1, 2, 3, 4, 5, 6, notify=True ) - @mock.patch.object(mdnsbase.pool_mngr_api.PoolManagerAPI, 'get_instance') - def test_poll_for_serial_number(self, mock_get_instance): - self.notify.get_serial_number = mock.Mock( - return_value=('status', 99, 9) - ) - ns = RoObject(host='host', port=1234) - - self.notify.poll_for_serial_number( - 'c', 'z', ns, 1, 2, 3, 4 - ) - - self.notify.get_serial_number.assert_called_with( - 'c', 'z', 'host', 1234, 1, 2, 3, 4 - ) - self.notify.pool_manager_api.update_status.assert_called_with( - 'c', 'z', ns, 'status', 99 - ) - @mock.patch('time.sleep') def test_get_serial_number_nxdomain(self, mock_sleep): # The zone is not found but it was supposed to be there |