Adjust test_api to account to multiple rules getting returned for a single set rule.

This commit is contained in:
Soren Hansen
2011-09-05 12:06:13 +02:00
parent 6e4e053f53
commit 83ae9ec2aa

View File

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