%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/test/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/test/test_netrc.pyo |
� 5}�ac @ 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 e 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 s t j | � } d } t j d k r1 | d 7} n t t | � � } | j | � Wd QX| rr | j t j t � n 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 cleanupt modet fp( ( s8 /opt/plesk/python/2.7/lib64/python2.7/test/test_netrc.pyt make_nrc s c C sx | j d d t �} | j | j d d � | j | j d d � | j | j � d t �} | j | j | j � d S( Ns� machine host1.domain.com login log1 password pass1 account acct1 default login log2 password pass2 R s host1.domain.comt log1t acct1t pass1t defaultt log2t pass2( R R R ( R NR ( R t Falset assertEqualt hostst Nonet __repr__t True( R t nrct nrc2( ( s8 /opt/plesk/python/2.7/lib64/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"