/usr/lib/python2.6/site-packages/cliff/tests
Edit: /usr/lib/python2.6/site-packages/cliff/tests/test_utils.pyc (2641B)
Ñò
4
Wc
@ s³ d d k Z d d k Z d d k Z d d k Z d d k Z d d k l Z d „ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z
e i d ƒ e i d d
ƒ d „ ƒ ƒ Z d S( iÿÿÿÿN( t utilsc C s: t i t i ƒ } | d j p t | t ƒ p t ‚ d S( N( R t terminal_widtht syst stdoutt Nonet
isinstancet intt AssertionError( t width( ( s5 /tmp/pip-build-wCUybK/cliff/cliff/tests/test_utils.pyt test_utils_terminal_width
s s cliff.utils.osc C s t t d ƒ p t i d ƒ ‚ n t i d ƒ } | | i _ t i t i
ƒ } | d j p t ‚ t ƒ | i _
t i t i
ƒ } | d j p t ‚ d S( Nt get_terminal_sizes" only needed for python 3.3 onwardsi
i ( i
i ( t hasattrt ost noset SkipTestt
terminal_sizeR
t return_valueR R R R R t OSErrort side_effectR ( t mock_ost tsR ( ( s5 /tmp/pip-build-wCUybK/cliff/cliff/tests/test_utils.pyt+ test_utils_terminal_width_get_terminal_size s s fcntl.ioctlc C s t t d ƒ o t i d ƒ ‚ n t i d d d d d ƒ | _ t i t i
ƒ } | d j p t ‚ t ƒ | _
t i t i
ƒ } | d j p t ‚ d S( NR
s% only needed for python 3.2 and beforet hhhhi9 ie i ( R R R
R t structt packR R R R R R t IOErrorR R ( t
mock_ioctlR ( ( s5 /tmp/pip-build-wCUybK/cliff/cliff/tests/test_utils.pyt test_utils_terminal_width_ioctl" s s cliff.utils.ctypess sys.platformt win32c
C s t t d ƒ o t i d ƒ ‚ n t i d d d d d d d d d d d d ƒ | i i _ d | i i
i _ d | i i
i _ t
i t i ƒ } | d j p t ‚ d | i i
i _ t
i t i ƒ } | d j p t ‚ t
i d ƒ } | d j p t ‚ d S( NR
s% only needed for python 3.2 and beforet hhhhHhhhhhhie i iõÿÿÿi t foo( R R R
R R R t create_string_bufferR t rawt windllt kernel32t GetStdHandlet GetConsoleScreenBufferInfoR R R R R R ( t mock_ctypesR ( ( s5 /tmp/pip-build-wCUybK/cliff/cliff/tests/test_utils.pyt! test_utils_terminal_width_windows/ s 3( R R R t mockR
t cliffR R t patchR R R&