diff options
| author | Jason Kölker <jason@koelker.net> | 2011-05-25 11:34:29 -0500 |
|---|---|---|
| committer | Jason Kölker <jason@koelker.net> | 2011-05-25 11:34:29 -0500 |
| commit | 912aa4288e27d517b2d2ff17564b94009aeeec2b (patch) | |
| tree | f790b3dafd038ae574a48bcb3255e1a50b762211 | |
| parent | 7aadbbc673ed21748f4b371d9e5a1f80f6884b9b (diff) | |
we're getting a list of tuples now'
| -rw-r--r-- | nova/tests/test_cloud.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nova/tests/test_cloud.py b/nova/tests/test_cloud.py index 7d35b31ea..b63b43217 100644 --- a/nova/tests/test_cloud.py +++ b/nova/tests/test_cloud.py @@ -138,12 +138,13 @@ class CloudTestCase(test.TestCase): instance_type_id=type_id, project_id=project_id) # TODO(jkoelker) Make this mas bueno + print ips self.assertTrue(ips) - self.assertTrue('ips' in ips[0]) - self.assertTrue(ips[0]['ips']) - self.assertTrue('ip' in ips[0]['ips'][0]) + self.assertTrue('ips' in ips[0][1]) + self.assertTrue(ips[0][1]['ips']) + self.assertTrue('ip' in ips[0][1]['ips'][0]) - fixed = ips[0]['ips'][0]['ip'] + fixed = ips[0][1]['ips'][0]['ip'] ec2_id = ec2utils.id_to_ec2_id(inst['id']) self.cloud.associate_address(self.context, |
