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.

This commit is contained in:
Soren Hansen
2011-02-15 12:33:31 +01:00
parent 80552c3f15
commit 0a04c879b7

View File

@@ -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()