Add VersionedStorageTestCases in make_versioned_storage_testcase_subclasses
authorW. Trevor King <wking@drexel.edu>
Mon, 18 Jan 2010 12:53:59 +0000 (07:53 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 18 Jan 2010 12:53:59 +0000 (07:53 -0500)
libbe/storage/base.py

index 0f6b09501aed0c49744988eae75bb21c0cfa7f29..1b0ceba91c5e4f7c4d99a2609b099677e7cd1721 100644 (file)
@@ -960,8 +960,11 @@ if TESTING == True:
         storage_testcase_classes = [
             c for c in (
                 ob for ob in globals().values() if isinstance(ob, type))
-            if issubclass(c, StorageTestCase) \
-                and c.Class == Storage]
+            if ((issubclass(c, StorageTestCase) \
+                     and c.Class == Storage)
+                or
+                (issubclass(c, VersionedStorageTestCase) \
+                     and c.Class == VersionedStorage))]
 
         for base_class in storage_testcase_classes:
             testcase_class_name = storage_class.__name__ + base_class.__name__