From: W. Trevor King Date: Mon, 18 Jan 2010 12:53:59 +0000 (-0500) Subject: Add VersionedStorageTestCases in make_versioned_storage_testcase_subclasses X-Git-Tag: 1.0.0~59^2~47^2~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8688804803235e1ca472526ed1904599bfba8e6c;p=be.git Add VersionedStorageTestCases in make_versioned_storage_testcase_subclasses --- diff --git a/libbe/storage/base.py b/libbe/storage/base.py index 0f6b095..1b0ceba 100644 --- a/libbe/storage/base.py +++ b/libbe/storage/base.py @@ -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__