Current File : //opt/imh-python/lib/python2.7/test/test_dictviews.pyc
�
��Wc@s|ddlZddlZddlZddlZddlmZdejfd��YZd�Ze	dkrxe�ndS(i����N(ttest_supporttDictSetTestcBsteZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(cCs�tij��}|jt|i�|jt|�tij��}|jt|i�|jt|�tij��}|jt|i�|jt|�dS(N(ttypetviewkeystassertRaisest	TypeErrort	viewitemst
viewvalues(tselftkttittvt((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_constructors_not_callable	scCs�idd6dd6}|j�}|jt|�d�|jt|�tddg��|j|tddg��|j|tdddg��|j|tddg��|j|tdg��|j|d�|jd|�|jd|�|jd|�|jd|�|j|j�|j��id	d6d
d6}|j|j�|j��|d=|j|j�|j��dS(Ni
itABCtaitbi*tZitdef(RtassertEqualtlentsettassertNotEqualtassertIntassertNotIn(Rtdtkeyste((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_dict_keyss$"cCs�idd6dd6}|j�}|jt|�d�|jt|�tddg��|j|td
dg��|j|tdddg��|j|tddg��|j|tdg��|j|d�|jd|�|jd|�|jd|�|jd|�|jd|�|jd|�|jd|�|j|j�|j��|j�}|j|j�|j��d|d<|j|j�|j��dS(Ni
iR
RitjunkRi*ii(ii
(RsABC(ii
(RsABC(ii
(RsABC(ii
(Rsdef(ii
(ii
(RsABC(ii((i(iii(RRRRRRRtcopy(RRtitemsR((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_dict_items(s*"
cCsdidd6dd6}idd6dd6}|j|j�|j��|j|j�|j��dS(Niiii(ii(ii(RRRR(RRR((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_dict_mixed_keys_items?scCs\idd6dd6}|j�}|jt|�tddg��|jt|�d�dS(Ni
iR
Ri(RRRR(RRtvalues((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_dict_valuesEs"cCs�idd6dd6}|jt|�t�t|j��}|j|t�|j|dkpg|dk�t|j��}|j|t�|j|dkp�|dk�t|j��}|j|t�|j|d	kp�|d
k�dS(Ni
iR
Rs#dict_items([('a', 'ABC'), (1, 10)])s#dict_items([(1, 10), ('a', 'ABC')])sdict_keys(['a', 1])sdict_keys([1, 'a'])sdict_values(['ABC', 10])sdict_values([10, 'ABC'])(tassertIsInstancetreprtstrRt
assertTrueRR(RRtr((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_dict_reprKs

cCs�idd6dd6}idd6dd6}idd6d	d
6}|j|j�|j�@ddh�|j|j�|j�@dh�|j|j�|j�@t��|j|j�t|j��@ddh�|j|j�t|j��@dh�|j|j�t|j��@t��|j|j�t|j��@ddh�|j|j�|j�Bddh�|j|j�|j�Bdddh�|j|j�|j�Bdddd
h�|j|j�t|j��Bddh�|j|j�t|j��Bdddh�|j|j�t|j��Bdddd
h�|j|j�dBddddh�|j|j�|j�At��|j|j�|j�Addh�|j|j�|j�Adddd
h�|j|j�t|j��At��|j|j�t|j��Addh�|j|j�t|j��Adddd
h�|j|j�t|j��Addh�|j|j�|j�t��|j|j�|j�dh�|j|j�|j�ddh�|j|j�t|j��t��|j|j�t|j��dh�|j|j�t|j��ddh�|j|j�d
ddh�dS(NiRiRitciRiRi(ii(ii(RRRttupleR(Rtd1td2td3((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_keys_set_operations[sB&##,)),&),,/&#&,),,##&)),cCs�idd6dd6}idd6dd6}idd6dd6}|j|j�|j�@d	d
h�|j|j�|j�@dh�|j|j�|j�@t��|j|j�t|j��@dd
h�|j|j�t|j��@dh�|j|j�t|j��@t��|j|j�|j�Bddh�|j|j�|j�Bdddh�|j|j�|j�Bddddh�|j|j�t|j��Bddh�|j|j�t|j��Bdddh�|j|j�t|j��Bdddd h�|j|j�|j�At��|j|j�|j�Ad!d"h�|j|j�|j�Ad#d$d%d&h�|j|j�|j�t��|j|j�|j�d'h�|j|j�|j�d(d)h�|j|j�t|j��t��|j|j�t|j��d*h�|j|j�t|j��d+d,h�dS(-NiRiRiRiR(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(Ri(RRR(RR+R,R-((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_items_set_operations�sF ##
))

#
##&))cCs-i}|j�|d<|jtt|�dS(Ni*(RRtRuntimeErrorR$(RR((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_recursive_repr�scCs�tdd�}|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj	�|j|j
�tj�|j|j
�tj�|j|j
�tj�|j|j�tj
�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj�|j|j�tj	�dS(NRi(tdictR#RtcollectionstKeysViewtMappingViewtSettSizedtIterablet	ContainerRt
ValuesViewRt	ItemsView(RR((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_abc_registry�s cCslidd6dd6}|jttj|j��|jttj|j��|jttj|j��dS(Ni
iR
R(RRRRRR(RR((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyt	test_copy�scCs�idd6dd6}x�ttjd�D]~}|jttjftj|j�|�|jttjftj|j�|�|jttjftj|j	�|�q(WdS(Ni
iR
R(
trangetpickletHIGHEST_PROTOCOLRRt
PicklingErrortdumpsRRR(RRtproto((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyttest_pickle�s(t__name__t
__module__RRRR R"R(R.R/R1R<R=RD(((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyRs							&	(			cCstjt�dS(N(Rtrun_unittestR(((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyt	test_main�st__main__(
RR?tunittestR3ttestRtTestCaseRRHRE(((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_dictviews.pyt<module>s�