Current File : //opt/imh-python/lib/python2.7/test/test_ensurepip.pyc |
�
��Wc @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d d l j Z d d l Z d d l
Z
d d l Z
e j j
d d d g �Z y d d l Z Wn e k
r� d Z d � Z n
Xd � Z d e j f d � � YZ d d d
� � YZ d e e j f d � � YZ e j e
j d
� � Z d e e j f d � � YZ d e e j f d � � YZ d e
j Z d e e j f d � � YZ d e e j f d � � YZ e d k r�e j j e � n d S( i����Nt ensurepipt blockedt sslc C s t j t j � } | | � S( N( t unittestt skipR t _MISSING_SSL_MESSAGE( t ft deco( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_ensurepip.pyt requires_usable_pip s c C s | S( N( ( R ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_ensurepip.pyR s t TestEnsurePipVersionc B s e Z d � Z RS( c C s | j t j t j � � d S( N( t assertEqualR t _PIP_VERSIONt version( t self( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_ensurepip.pyt test_returns_version s ( t __name__t
__module__R ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_ensurepip.pyR s t EnsurepipMixinc B s e Z d � Z RS( c C s� t j d � } | j � | _ | j | j � t j } t j d � } | j � } | j | j � | | _ t j | _ t j j
� | _ | _ d S( Ns ensurepip._run_pips ensurepip.os( t mockt patcht startt run_pipt
addCleanupt stopt ost devnullt patht environt copyt
os_environ( R
t
run_pip_patcht real_devnullt os_patcht
patched_os( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_ensurepip.pyt setUp% s ( R R R"