Your IP : 216.73.216.213
B
R�X, � @ s� d dl mZ d dlmZ d dlmZmZ d dlmZm Z d dl
Z
dd� ZG dd � d �Zddd�Z
G d
d� de�ZdZe eejej
e
eg� dS )� )�partial)� ClassType)�resolve� not_there)�wrap�extend_docstringNc C s t | |�ot ||� S )N)�
isinstance)�x�yZ
descriptor� r �E/opt/alt/python37/lib/python3.7/site-packages/testfixtures/replace.py�not_same_descriptor s r
c @ sV e Zd ZdZdd� Zddd�Zddd�Zdd d
�Zdd� Zd
d� Z dd� Z
dd� ZdS )�Replacerz�
These are used to manage the mocking out of objects so that units
of code can be tested without having to rely on their normal
dependencies.
c C s
i | _ d S )N)� originals)�selfr r r �__init__ s zReplacer.__init__Tc C sR |t kr*|dkrt||� |dkrN||= n$|dkr>t|||� |dkrN|||<