Current File : //opt/imh-python/lib/python2.7/test/test_print.pyc
�
��Wc@s8dZddlmZddlZddlmZddlmZe�Zid�e	e	e	f6d�e	e	e
f6d�e	e
e	f6d	�e	e
e
f6d
�e
e	e	f6d�e
e	e
f6d�e
e
e	f6d
�e
e
e
f6Zddd��YZdej
fd��YZd�Zedkr4e�ndS(s.Test correct operation of the print function.
i����(tprint_functionN(ttest_support(tStringIOcCs
t|�S(N(tprint(targstseptendtfile((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyt<lambda>scCstd||�S(NR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyRscCstd||�S(NR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyRscCstd|d||�S(NRR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyRscCstd||�S(NR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyRscCstd|d||�S(NRR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR scCstd|d||�S(NRR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR"scCstd|d|d||�S(NRRR(R(RRRR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR$stClassWith__str__cBseZd�Zd�ZRS(cCs
||_dS(N(tx(tselfR
((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyt__init__)scCs|jS(N(R
(R((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyt__str__+s(t__name__t
__module__RR
(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR	(s	t	TestPrintcBs,eZeeed�Zd�Zd�ZRS(c	Csgt|tk	|tk	|tk	f}tj��}|||||�WdQX|j|j�|�dS(N(tdispatcht
NotDefinedRtcaptured_stdouttassertEqualtgetvalue(RtexpectedRRRRtfntt((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pytcheck/s	cs�tt�fd�}|dd)�|dd*�|dd+�|dd,�|d	d-�|dd.dd
�|dd/dd�|dd0dd�|dd1dddd�|dd2dd
dd�|dd3dd�|dd4dd�|dd5�|dd6dd�|dd7dd�|dd8dddd�|dtd
�f�|dtd�df�|d d9�|d#d:�|d%d
td&�df��jttddd'��jttddd'��jttdd(d�dS(;Nc	sa�j||d|d|�t�}�jd|d|d|d|��j|j�|�dS(NRRtR(RRRR(RRRRto(R(sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR
As	"s
sa
tasNone
s1 2
iis1   2
t s1*2
Rt*s1 stsRRsa
b
tbs1.01g�?s1*a*1.3+g�������?t+sa

b
t+ +
tsa
 b
s*
sabc 1
tabcu1 2
t1u2uuS4
uuS4u  abc 1
uabciR((R(N(ii(iRi(ii(iR(RR (g�?i(iRg�������?(sa
R (sRs(sa
R (sa
R (sa
R (sa
R (R%u2(uuS4(RtNoneR	tassertRaisest	TypeErrorRtAttributeError(RR
((Rsh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyt
test_print@s2








cCsdtfd��Y}|t�}tdd|�|jdj|j�d�|j2tddd|�|jdj|j�d�|t�}td	d
ddd|�|j|jd
t�|j|jdt�|j2tddd|�|j|jdt�dS(NtRecordercBseZd�Zd�ZRS(cSsg|_||_dS(N(tbuft
force_unicode(Rtmust_be_unicode((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyRqs	cSsE|jr1t|t�r1tdj|���n|jj|�dS(Ns{0!r} is not unicode(R-t
isinstancetunicodetAssertionErrortformatR,tappend(Rtwhat((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pytwriteus(RRRR5(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR+os	uhiRushi
unothingshi nothing
thitbyeRu
iiRuxi����(	tobjecttTrueRRtjoinR,tFalsetassertIsInstanceR0(RR+R,((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyttest_mixed_argsms(RRRRR*R=(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyR.s	-cCstjt�dS(N(Rtrun_unittestR(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyt	test_main�st__main__((t__doc__t
__future__RtunittestttestRRR8RR;R9RR	tTestCaseRR?R(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_print.pyt<module>s&	[