diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-05-05 04:59:26 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-05-05 04:59:26 -0700 |
| commit | 5f4fc98c9648fd3f124819e0f4a26cb1d2d7f0e8 (patch) | |
| tree | b26747a7547ae2d313cf7537748651bbe5eb63e9 | |
| parent | cc18ff47ff41ddefd7a31db5b772d55b2e312e8c (diff) | |
and or test
| -rw-r--r-- | nova/tests/test_query.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nova/tests/test_query.py b/nova/tests/test_query.py index 896b2364d..90ae80dc0 100644 --- a/nova/tests/test_query.py +++ b/nova/tests/test_query.py @@ -139,8 +139,5 @@ class QueryTestCase(test.TestCase): self.assertEquals(5, len(hosts)) just_hosts = [host for host, caps in hosts] just_hosts.sort() - self.assertEquals('host0', just_hosts[0]) - self.assertEquals('host1', just_hosts[1]) - self.assertEquals('host7', just_hosts[2]) - self.assertEquals('host8', just_hosts[3]) - self.assertEquals('host9', just_hosts[4]) + for index, host in zip([0, 1, 7, 8, 9], just_hosts): + self.assertEquals('host%d' % index, host) |
