diff options
| author | Soren Hansen <soren@linux2go.dk> | 2011-02-15 12:33:31 +0100 |
|---|---|---|
| committer | Soren Hansen <soren@linux2go.dk> | 2011-02-15 12:33:31 +0100 |
| commit | 9ab97a9b0860f912be2a085327eea6b9a7fa7674 (patch) | |
| tree | 024a121145955b386ce8c8c2da74c7ea8dcf9610 /nova | |
| parent | 0a93ef16bbb999b75a951adb73612338579db954 (diff) | |
| download | nova-9ab97a9b0860f912be2a085327eea6b9a7fa7674.tar.gz nova-9ab97a9b0860f912be2a085327eea6b9a7fa7674.tar.xz nova-9ab97a9b0860f912be2a085327eea6b9a7fa7674.zip | |
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.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/test_api.py | 2 |
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() |
