summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorMark Washenberger <mark.washenberger@rackspace.com>2011-03-17 15:04:28 -0400
committerMark Washenberger <mark.washenberger@rackspace.com>2011-03-17 15:04:28 -0400
commit4334ca9d6b0ac8a9b2edb1fbcbf0bc4df28b2961 (patch)
treecf68e534a7c828b241ce79855afef290a75f8d3a /nova/tests
parentc8e474d04dce462650c2a9f57cbcb106ce3ef0c9 (diff)
get api openstack test_images working
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/test_images.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/api/openstack/test_images.py b/nova/tests/api/openstack/test_images.py
index 76f758929..47dd11e5b 100644
--- a/nova/tests/api/openstack/test_images.py
+++ b/nova/tests/api/openstack/test_images.py
@@ -182,8 +182,8 @@ class ImageControllerWithGlanceServiceTest(test.TestCase):
{'id': '23g2ogk23k4hhkk4k42l',
'imageId': '23g2ogk23k4hhkk4k42l',
'name': 'public image #1',
- 'created_at': str(datetime.datetime.utcnow()),
- 'updated_at': str(datetime.datetime.utcnow()),
+ 'created_at': datetime.datetime.utcnow().isoformat(),
+ 'updated_at': datetime.datetime.utcnow().isoformat(),
'deleted_at': None,
'deleted': False,
'is_public': True,
@@ -192,8 +192,8 @@ class ImageControllerWithGlanceServiceTest(test.TestCase):
{'id': 'slkduhfas73kkaskgdas',
'imageId': 'slkduhfas73kkaskgdas',
'name': 'public image #2',
- 'created_at': str(datetime.datetime.utcnow()),
- 'updated_at': str(datetime.datetime.utcnow()),
+ 'created_at': datetime.datetime.utcnow().isoformat(),
+ 'updated_at': datetime.datetime.utcnow().isoformat(),
'deleted_at': None,
'deleted': False,
'is_public': True,