summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-08-15 16:37:06 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-08-15 16:37:06 -0700
commit0c5b2dc5e2f215ab6b8023e571c5b537e7fa730e (patch)
tree4e73705973b1aec36eeecdf6df14702947ffa688
parent11aa7a7c959783d48e624707d59d30ccdd8b2733 (diff)
downloadnova-0c5b2dc5e2f215ab6b8023e571c5b537e7fa730e.tar.gz
nova-0c5b2dc5e2f215ab6b8023e571c5b537e7fa730e.tar.xz
nova-0c5b2dc5e2f215ab6b8023e571c5b537e7fa730e.zip
typos
-rw-r--r--nova/tests/volume_unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/volume_unittest.py b/nova/tests/volume_unittest.py
index e979995fd..91706580f 100644
--- a/nova/tests/volume_unittest.py
+++ b/nova/tests/volume_unittest.py
@@ -127,11 +127,11 @@ class VolumeTestCase(test.TrialTestCase):
shelf_blades = []
def _check(volume_id):
vol = models.Volume.find(volume_id)
- shelf_blade = '%s.%s' % (vol['shelf_id'], vol['blade_id'])
+ shelf_blade = '%s.%s' % (vol.shelf_id, vol.blade_id)
self.assert_(shelf_blade not in shelf_blades)
shelf_blades.append(shelf_blade)
logging.debug("got %s" % shelf_blade)
- vol.destroy()
+ vol.delete()
deferreds = []
for i in range(5):
d = self.volume.create_volume(vol_size, user_id, project_id)