def _testdata_from_module(module):
    for name in dir(module):
        o = getattr(module, name)
        try:
            base_classes = [ResourceTestData]
            is_base_class = o in base_classes
            is_testdata_class =  issubclass(o, ResourceTestData)

            if is_testdata_class and not is_base_class:
                yield o
        except __HOLE__: pass
dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastytools/tastytools/api.py/_testdata_from_module