code: def _parse(self, test_spec_str):
      
      components = test_spec_str.split('#', 2)
      classname = components[0]
      methodname = components[1] if len(components) == 2 else None
  
      return Test(classname=classname, methodname=methodname)
docs: 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`