]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused fake objects in vmdk test module
authorVipin Balachandran <vbala@vmware.com>
Wed, 12 Aug 2015 10:47:55 +0000 (16:17 +0530)
committerVipin Balachandran <vbala@vmware.com>
Wed, 12 Aug 2015 10:47:55 +0000 (16:17 +0530)
Patch to remove unused fake objects in the vmdk unit
test module.

Change-Id: I15f4ed1c028bc01558a2f5bf39d9fb294afd52bf

cinder/tests/unit/test_vmware_vmdk.py

index d28c5eb8bd269ccaa049a55ad2be10381d11f1b6..83005161e007f7090cc9ea578669c0b963fe631a 100644 (file)
@@ -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):