def get_test_class(dbcase):
    if dbcase.automated and dbcase.valid:
        impl = dbcase.testimplementation
        if impl:
            obj = module.get_object(impl)
            if type(obj) is type and issubclass(obj, core.Test):
                return obj
            else:
                raise InvalidTestError("%r is not a Test class object." % (obj,))
        else:
            return None
    else:
        return None
Return the implementation class of a TestCase, or None if not found.
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/testloader.py/get_test_class