summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Pepple <ken.pepple@gmail.com>2011-08-21 18:07:07 -0700
committerKen Pepple <ken.pepple@gmail.com>2011-08-21 18:07:07 -0700
commitd4b09b85ad20bd0b83bc48d7bd1e0c6754b2649b (patch)
tree8a0efc43ef09037fe0e3b6b7bcb8b2ad9de501cb
parent0fdbea56baaef08575b98e8a553ceac9876e4962 (diff)
added test for bad project_id ... although it may not be used
-rw-r--r--nova/tests/test_ipv6.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/tests/test_ipv6.py b/nova/tests/test_ipv6.py
index 6e72b7330..f151b9840 100644
--- a/nova/tests/test_ipv6.py
+++ b/nova/tests/test_ipv6.py
@@ -52,6 +52,13 @@ class IPv6RFC2462TestCase(test.TestCase):
'2001:db8::216:3eff:fe33:4455',
'test')
+ def test_to_global_with_bad_project(self):
+ bad_project = 'non-existent-project-name'
+ self.assertRaises(TypeError, ipv6.to_global,
+ '2001:db8::',
+ '2001:db8::a94a:8fe5:ff33:4455',
+ bad_project)
+
class IPv6AccountIdentiferTestCase(test.TestCase):
"""Unit tests for IPv6 account_identifier backend operations."""