summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorWilliam Wolf <throughnothing@gmail.com>2011-07-27 16:34:02 -0400
committerWilliam Wolf <throughnothing@gmail.com>2011-07-27 16:34:02 -0400
commitf2d8e91b83ff3a3bd1e2f3c53c25a418a578cd27 (patch)
treef79fe6b340effb9e8f2857fc83cf328f8c308390 /nova/tests
parent2ac60cd773bb25e19b50c082e0860b1c495d1527 (diff)
moved rest of build logic into builder
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/test_versions.py31
1 files changed, 20 insertions, 11 deletions
diff --git a/nova/tests/api/openstack/test_versions.py b/nova/tests/api/openstack/test_versions.py
index f059b140d..6e4042b3f 100644
--- a/nova/tests/api/openstack/test_versions.py
+++ b/nova/tests/api/openstack/test_versions.py
@@ -529,20 +529,29 @@ class VersionsTest(test.TestCase):
base_url = "http://example.org/"
version_data = {
- "id": "3.2.1",
- "status": "CURRENT",
- "updated": "2011-07-18T11:30:00Z"}
+ "v3.2.1": {
+ "version": {
+ "id": "3.2.1",
+ "status": "CURRENT",
+ "updated": "2011-07-18T11:30:00Z",
+ }
+ }
+ }
expected = {
- "id": "3.2.1",
- "status": "CURRENT",
- "updated": "2011-07-18T11:30:00Z",
- "links": [
+ "versions": [
{
- "rel": "self",
- "href": "http://example.org/3.2.1/",
- },
- ],
+ "id": "3.2.1",
+ "status": "CURRENT",
+ "updated": "2011-07-18T11:30:00Z",
+ "links": [
+ {
+ "rel": "self",
+ "href": "http://example.org/3.2.1/",
+ },
+ ],
+ }
+ ]
}
builder = views.versions.ViewBuilder(base_url)