summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-09-05 12:06:13 +0200
committerSoren Hansen <soren@linux2go.dk>2011-09-05 12:06:13 +0200
commit95fc404a5e3588d9f40cf7236fbda129346d134d (patch)
treeab120abacecdb6ef3aee3f386626dd7952a47609
parent21e31635e699c5a1d5c64ddda03516174567483f (diff)
Adjust test_api to account to multiple rules getting returned for a single set rule.
-rw-r--r--nova/tests/test_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_api.py b/nova/tests/test_api.py
index 526d1c490..e9f1145dd 100644
--- a/nova/tests/test_api.py
+++ b/nova/tests/test_api.py
@@ -515,7 +515,7 @@ class ApiEc2TestCase(test.TestCase):
# be good enough for that.
for group in rv:
if group.name == security_group_name:
- self.assertEquals(len(group.rules), 1)
+ self.assertEquals(len(group.rules), 3)
self.assertEquals(len(group.rules[0].grants), 1)
self.assertEquals(str(group.rules[0].grants[0]), '%s-%s' %
(other_security_group_name, 'fake'))