Ejemplo n.º 1
0
 def __init__(self, target):
     """
     :param str path: The absolute module path to the class.
     """
     module_path, self._name = get_path_components(target)
     self.target = get_module(module_path, target)
     self._capture_original_object()
     self.set_value(None)
Ejemplo n.º 2
0
 def __init__(self, path, **kwargs):
     module_path, class_name = get_path_components(path)
     module = get_module(module_path, path)
     self._doubles_target = _get_doubles_target(module, class_name, path)
     for k, v in kwargs.items():
         setattr(self, k, v)
Ejemplo n.º 3
0
 def __init__(self, path, **kwargs):
     module_path, class_name = get_path_components(path)
     module = get_module(module_path, path)
     self._doubles_target = _get_doubles_target(module, class_name, path)
     for k, v in kwargs.items():
         setattr(self, k, v)