<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse(self, test_spec_str):
 """Parses a test specification string into an object that can yield corresponding tests. Tests can be specified in one of four forms: * [classname] * [classname]#[methodname] * [fully qualified classname]#[methodname] * [fully qualified classname]#[methodname] :param string test_spec: A test specification. :returns: A Test object. :rtype: :class:`Test` """

    components = test_spec_str.split('#', 2)
    classname = components[0]
    methodname = components[1] if len(components) == 2 else None

    return Test(classname=classname, methodname=methodname)