summaryrefslogtreecommitdiffstats
path: root/nova/tests/test_image.py
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-08-05 15:37:36 +0200
committerSoren Hansen <soren@linux2go.dk>2011-08-05 15:37:36 +0200
commit1e366d9de180347b47675bf7f811ffd5a293ef10 (patch)
treeaea0c70050c7ebc2096096009d1f277ba82bb513 /nova/tests/test_image.py
parent9742ff588d3ce90b1420eaf95e311f02a4e196da (diff)
downloadnova-1e366d9de180347b47675bf7f811ffd5a293ef10.tar.gz
nova-1e366d9de180347b47675bf7f811ffd5a293ef10.tar.xz
nova-1e366d9de180347b47675bf7f811ffd5a293ef10.zip
pep8
Diffstat (limited to 'nova/tests/test_image.py')
-rw-r--r--nova/tests/test_image.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/nova/tests/test_image.py b/nova/tests/test_image.py
index ba5b93f9b..5ec8812f3 100644
--- a/nova/tests/test_image.py
+++ b/nova/tests/test_image.py
@@ -1,6 +1,6 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
-# Copyright 2011 Linux2Go
+# Copyright 2011 OpenStack LLC
# Author: Soren Hansen
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -82,16 +82,14 @@ class _ImageTestCase(test.TestCase):
self.image_service.create(self.context, {})
index = self.image_service.index(self.context)
- self.assertEquals(len(index), image_count+1)
+ self.assertEquals(len(index), image_count + 1)
self.assertTrue(index[0]['id'])
-
def test_create_keeps_id(self):
self.image_service.create(self.context, {'id': '34'})
self.image_service.show(self.context, '34')
-
def test_create_rejects_duplicate_ids(self):
self.image_service.create(self.context, {'id': '34'})
self.assertRaises(exception.Duplicate,
@@ -132,4 +130,3 @@ class FakeImageTestCase(_ImageTestCase):
def setUp(self):
super(FakeImageTestCase, self).setUp()
self.image_service = nova.image.fake.FakeImageService()
-