summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-02-15 12:33:31 +0100
committerSoren Hansen <soren@linux2go.dk>2011-02-15 12:33:31 +0100
commit9ab97a9b0860f912be2a085327eea6b9a7fa7674 (patch)
tree024a121145955b386ce8c8c2da74c7ea8dcf9610
parent0a93ef16bbb999b75a951adb73612338579db954 (diff)
Break out of the "for group in rv" loop in security group unit tests so that we are use we are dealing with the correct group.
-rw-r--r--nova/tests/test_api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/test_api.py b/nova/tests/test_api.py
index 2569e262b..efd6d94a8 100644
--- a/nova/tests/test_api.py
+++ b/nova/tests/test_api.py
@@ -258,6 +258,7 @@ class ApiEc2TestCase(test.TestCase):
self.assertEquals(int(group.rules[0].to_port), 81)
self.assertEquals(len(group.rules[0].grants), 1)
self.assertEquals(str(group.rules[0].grants[0]), '0.0.0.0/0')
+ break
self.expect_http()
self.mox.ReplayAll()
@@ -324,6 +325,7 @@ class ApiEc2TestCase(test.TestCase):
self.assertEquals(int(group.rules[0].to_port), 81)
self.assertEquals(len(group.rules[0].grants), 1)
self.assertEquals(str(group.rules[0].grants[0]), '::/0')
+ break
self.expect_http()
self.mox.ReplayAll()