diff options
| author | Naveed Massjouni <naveedm9@gmail.com> | 2011-09-13 11:22:45 -0400 |
|---|---|---|
| committer | Naveed Massjouni <naveedm9@gmail.com> | 2011-09-13 11:22:45 -0400 |
| commit | 613bcfc45865c9d7c7577e124b187920970d031e (patch) | |
| tree | f7d5cdeb116902c21b43f5ca81550ce28a1616bd | |
| parent | 4c2f8b561390358cbd1c8dbfbc7e4d8370b2b84e (diff) | |
And again.
| -rw-r--r-- | nova/tests/api/openstack/test_versions.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/tests/api/openstack/test_versions.py b/nova/tests/api/openstack/test_versions.py index 0077cbe79..f69dbd316 100644 --- a/nova/tests/api/openstack/test_versions.py +++ b/nova/tests/api/openstack/test_versions.py @@ -408,10 +408,9 @@ class VersionsTest(test.TestCase): self.assertEqual(len(entry.content), 1) self.assertEqual(entry.content[0].value, 'Version v1.1 CURRENT (2011-01-21T11:33:21Z)') - self.assertEqual(entry.links, [{ - 'href': 'http://localhost/v1.1/', - 'type': 'application/atom+xml', - 'rel': 'self'}]) + self.assertEqual(len(entry.links), 1) + self.assertEqual(entry.links[0]['href'], 'http://localhost/v1.1/') + self.assertEqual(entry.links[0]['rel'], 'self') def test_multi_choice_image(self): req = webob.Request.blank('/images/1') |
