%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_netrc.pyc |
ó Nêá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( ( s+ /usr/local/lib/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( ( s+ /usr/local/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"