From cb1ce414ae629b9e4fdef9d2a96fa1dd2f80f68c Mon Sep 17 00:00:00 2001 From: Vipin Balachandran Date: Wed, 12 Aug 2015 16:17:55 +0530 Subject: [PATCH] Remove unused fake objects in vmdk test module Patch to remove unused fake objects in the vmdk unit test module. Change-Id: I15f4ed1c028bc01558a2f5bf39d9fb294afd52bf --- cinder/tests/unit/test_vmware_vmdk.py | 56 --------------------------- 1 file changed, 56 deletions(-) diff --git a/cinder/tests/unit/test_vmware_vmdk.py b/cinder/tests/unit/test_vmware_vmdk.py index d28c5eb8b..83005161e 100644 --- a/cinder/tests/unit/test_vmware_vmdk.py +++ b/cinder/tests/unit/test_vmware_vmdk.py @@ -59,18 +59,6 @@ class FakeVim(object): pass -class FakeTaskInfo(object): - def __init__(self, state, result=None): - self.state = state - self.result = result - - class FakeError(object): - def __init__(self): - self.localizedMessage = None - - self.error = FakeError() - - class FakeMor(object): def __init__(self, type, val): self._type = type @@ -88,50 +76,6 @@ class FakeObject(object): return self._fields[item] -class FakeManagedObjectReference(object): - def __init__(self, lis=None): - self.ManagedObjectReference = lis or [] - - -class FakeDatastoreSummary(object): - def __init__(self, freeSpace, capacity, datastore=None, name=None): - self.freeSpace = freeSpace - self.capacity = capacity - self.datastore = datastore - self.name = name - - -class FakeSnapshotTree(object): - def __init__(self, tree=None, name=None, - snapshot=None, childSnapshotList=None): - self.rootSnapshotList = tree - self.name = name - self.snapshot = snapshot - self.childSnapshotList = childSnapshotList - - -class FakeElem(object): - def __init__(self, prop_set=None): - self.propSet = prop_set - - -class FakeProp(object): - def __init__(self, name=None, val=None): - self.name = name - self.val = val - - -class FakeRetrieveResult(object): - def __init__(self, objects, token): - self.objects = objects - self.token = token - - -class FakeObj(object): - def __init__(self, obj=None): - self.obj = obj - - # TODO(vbala) Split test methods handling multiple cases into multiple methods, # each handling a specific case. class VMwareEsxVmdkDriverTestCase(test.TestCase): -- 2.45.2