summaryrefslogtreecommitdiff
path: root/nova/tests/virt/test_driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/virt/test_driver.py')
-rw-r--r--nova/tests/virt/test_driver.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/nova/tests/virt/test_driver.py b/nova/tests/virt/test_driver.py
index 1edf91c769..4101a6a9ce 100644
--- a/nova/tests/virt/test_driver.py
+++ b/nova/tests/virt/test_driver.py
@@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import inspect
-
from nova import test
from nova.virt import driver
@@ -58,34 +56,3 @@ class ToDriverRegistryTestCase(test.NoDBTestCase):
drvs['key2'],
FakeDriver2, 'arg1', 'arg2', param1='value1',
param2='value2')
-
-
-class DriverAPITestHelper():
-
- def assertPublicAPISignatures(self, inst):
- def get_public_apis(inst):
- methods = {}
- for (name, value) in inspect.getmembers(inst, inspect.ismethod):
- if name.startswith("_"):
- continue
- methods[name] = value
- return methods
-
- base = driver.ComputeDriver(None)
- basemethods = get_public_apis(base)
- implmethods = get_public_apis(inst)
-
- extranames = []
- for name in sorted(implmethods.keys()):
- if name not in basemethods:
- extranames.append(name)
-
- self.assertEqual([], extranames,
- "public APIs not listed in base class")
-
- for name in sorted(implmethods.keys()):
- baseargs = inspect.getargspec(basemethods[name])
- implargs = inspect.getargspec(implmethods[name])
-
- self.assertEqual(baseargs, implargs,
- "%s args don't match base" % name)