added zone routing flag test
This commit is contained in:
@@ -1017,6 +1017,7 @@ class ZoneRedirectTest(test.TestCase):
|
|||||||
decorator = FakeRerouteCompute("foo")
|
decorator = FakeRerouteCompute("foo")
|
||||||
try:
|
try:
|
||||||
result = decorator(go_boom)(None, None, 1)
|
result = decorator(go_boom)(None, None, 1)
|
||||||
|
self.assertFail(_("Should have thrown exception."))
|
||||||
except exception.InstanceNotFound, e:
|
except exception.InstanceNotFound, e:
|
||||||
self.assertEquals(e.message, 'boom message')
|
self.assertEquals(e.message, 'boom message')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user