@mock.patch.object(router_info.RouterInfo, 'remove_floating_ip')
def test_remove_floating_ip(self, super_remove_floating_ip):
    ri = self._create_router(mock.MagicMock())
    ri.floating_ip_removed_dist = mock.Mock()
    ri.remove_floating_ip(mock.sentinel.device, mock.sentinel.ip_cidr)
    self.assertFalse(super_remove_floating_ip.called)
    ri.floating_ip_removed_dist.assert_called_once_with(mock.sentinel.ip_cidr)
@mock.patch.object(router_info.RouterInfo, 'remove_floating_ip')
def test_remove_floating_ip(self, super_remove_floating_ip):
    ri = self._create_router(mock.MagicMock())
    ri.floating_ip_removed_dist = mock.Mock()
    ri.remove_floating_ip(mock.sentinel.device, mock.sentinel.ip_cidr)
    self.assertFalse(super_remove_floating_ip.called)
    ri.floating_ip_removed_dist.assert_called_once_with(mock.sentinel.ip_cidr)