Current File : //opt/imh-python/lib/python2.7/test/test_netrc.pyo |
�
��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 m Z e j Z d e j f d � � YZ
d � Z e d k r� e � n d S( i����N( t test_supportt
NetrcTestCasec B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d d � Z d � Z
d
� Z d � Z d � Z
d
� Z d � Z e j e j d k d � d � � Z RS( c C sv t j | � } d } t j d k r1 | d 7} n t t | � � } | j | � Wd QX| j t j t � t
j
t � S( Nt wt cygwint t( t textwrapt dedentt syst platformt opent
temp_filenamet writet
addCleanupt ost unlinkt netrc( t selft test_datat modet fp( ( sh /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_netrc.pyt make_nrc s
c C sA | j d � } | j | j d d � | j | j d d
� d S( Ns� machine host1.domain.com login log1 password pass1 account acct1
default login log2 password pass2
s host1.domain.comt log1t acct1t pass1t defaultt log2t pass2( R R R ( R NR ( R t assertEqualt hostst None( R t nrc( ( sh /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_netrc.pyt test_default s
c C s@ | j d � } | j | j i d d g d 6d d g d 6� d S( Ns� macdef macro1
line1
line2
macdef macro2
line3
line4
s line1
s line2
t macro1s line3
s line4
t macro2( R R t macros( R R ( ( sh /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_netrc.pyt test_macros s c C s3 | j | � } | j | j d d d | f � d S( Ns host.domain.comt logt acct( R R R ( R R t passwd( ( sh /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_netrc.pyt _test_passwords( s c C s | j d d � d S( NsV machine host.domain.com login log password #pass account acct
s #pass( R'