def test_add_floating_ip(self):
    ri = self._create_router(mock.MagicMock())
    ip = '0.0.0.0'
    fip = {'floating_ip_address': ip}
    result = self._test_add_floating_ip(ri, fip)
    ri.floating_ip_added_dist.assert_called_once_with(fip, (ip + '/32'))
    self.assertEqual(lib_constants.FLOATINGIP_STATUS_ACTIVE, result)
def test_add_floating_ip(self):
    ri = self._create_router(mock.MagicMock())
    ip = '0.0.0.0'
    fip = {'floating_ip_address': ip}
    result = self._test_add_floating_ip(ri, fip)
    ri.floating_ip_added_dist.assert_called_once_with(fip, (ip + '/32'))
    self.assertEqual(lib_constants.FLOATINGIP_STATUS_ACTIVE, result)