'Find and load tests, given C{name}.
This partially duplicates the logic in C{unittest.loader.TestLoader}.
@param name: The qualified name of the thing to load.
@param recurse: A boolean. If True, inspect modules within packages
within the given package (and so on), otherwise, only inspect
modules in the package itself.'

def findByName(self, _name, recurse=False):

    if (os.sep in _name):
        name = reflect.filenameToModuleName(_name)
        try:
            __import__(name)
        except ImportError:
            return self.loadFile(_name, recurse=recurse)
    else:
        name = _name
    obj = parent = remaining = None
    for (searchName, remainingName) in _qualNameWalker(name):
        try:
            obj = reflect.namedModule(searchName)
            remaining = remainingName
            break
        except ImportError:
            if (remaining == ''):
                raise reflect.ModuleNotFound('The    module    {}    does    not    exist.'.format(name))
    if (obj is None):
        obj = reflect.namedAny(name)
        remaining = name.split('.')[(len('.'.split(obj.__name__)) + 1):]
    try:
        for part in remaining:
            (parent, obj) = (obj, getattr(obj, part))
    except AttributeError:
        raise AttributeError('{}    does    not    exist.'.format(name))
    return self.loadAnything(obj, parent=parent, qualName=remaining, recurse=recurse)
