added new exception more descriptive of not having available floating addresses avail for allocation

This commit is contained in:
John Tran
2011-06-10 11:10:58 -07:00
parent 044a6ed698
commit 961a97db41

View File

@@ -123,7 +123,7 @@ class CloudTestCase(test.TestCase):
'host': self.network.host})
self.assertEqual(allocate(self.context)['publicIp'], address)
db.floating_ip_destroy(self.context, address)
self.assertRaises(exception.NoFloatingIpsDefined,
self.assertRaises(exception.NoMoreFloatingIps,
allocate,
self.context)