From 64cfda6fa84b4acd2c2fd63f495ed54940f8ee05 Mon Sep 17 00:00:00 2001 From: Flaper Fesp Date: Wed, 13 Mar 2013 17:51:43 +0100 Subject: [PATCH] Use issublcass instead of isinstance StorageBaseTest should check for issubclass instead of isinstance since the driver / controller instances are not yet created at that time. Fixes bug 1154690 Change-Id: I12a76305045cd7dfb8c98ece97e9e6c02e0b7622 --- marconi/tests/storage/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marconi/tests/storage/base.py b/marconi/tests/storage/base.py index f604596e8..f437f6174 100644 --- a/marconi/tests/storage/base.py +++ b/marconi/tests/storage/base.py @@ -29,7 +29,7 @@ class ControllerBaseTest(suite.TestSuite): if not self.driver_class: self.skipTest("No driver class specified") - if not isinstance(self.controller_class, self.controller_base_class): + if not issubclass(self.controller_class, self.controller_base_class): self.skipTest("%s is not an instance of %s. Tests not supported" % (self.controller_class, self.controller_base_class))