a zeàã@sFddlmZddlmZddlZGdd„dejƒZedkrBe ¡dS)é)ÚUserList)Ú list_testsNcsdeZdZeZ‡fdd„Zdd„Zdd„Zdd„Z‡fd d „Z d d „Z d d„Z dd„Z dd„Z ‡ZS)Ú UserListTestcs”tƒ ¡gd¢}| |¡}tddƒD]h}| |d|…|d|…¡| ||d…||d…¡tddƒD] }| |||…|||…¡qlq&dS)N©réééééýÿÿÿé)ÚsuperÚ test_getsliceÚ type2testÚrangeÚ assertEqual)ÚselfÚlÚuÚiÚj©Ú __class__©úF/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_userlist.pyr s  zUserListTest.test_getslicecCs>gd¢}t|ƒ}| |dd…|j¡| |dd…|¡dS)Nr)rZassertIsInstancerr)rrrrrrÚtest_slice_typeszUserListTest.test_slice_typecCs$tdƒ}|d}| |tdƒ¡dS)NÚspamÚeggsÚspameggs)rrÚlist©rrÚu2rrrÚtest_add_specialsszUserListTest.test_add_specialscCsBtdƒ}d|}| |tdƒ¡| tdƒ¡}| |tdƒ¡dS)Nrrr)rrrÚ__radd__rrrrÚtest_radd_specialss zUserListTest.test_radd_specialscs6tƒ ¡ddg}|tddgƒ7}| |gd¢¡dS)Nrr)rrrr)r Ú test_iaddrr©rrrrrr$&s zUserListTest.test_iaddcCs@| ddg¡}| |ddg¡| |dg¡| |ddg¡dS)Nrrr)rrZassertNotEqualr%rrrÚ test_mixedcmp,szUserListTest.test_mixedcmpcCs8| ddg¡}| |g|¡| |dggd¢¡dS)Nrrr)rrr)rrr%rrrÚ test_mixedadd2szUserListTest.test_mixedaddcCs.Gdd„d|jƒ}| tt|dƒƒƒd¡dS)Nc@seZdZdd„ZdS)z1UserListTest.test_getitemoverwriteiter..TcSs t|ƒdS)Nz!!!)Ústr)rÚkeyrrrÚ __getitem__:sz=UserListTest.test_getitemoverwriteiter..T.__getitem__N)Ú__name__Ú __module__Ú __qualname__r*rrrrÚT9sr.)rrz0!!!)rrÚnextÚiter)rr.rrrÚtest_getitemoverwriteiter7sz&UserListTest.test_getitemoverwriteitercCs:| gd¢¡}| ¡}| ||¡| t|ƒt|ƒ¡dS)N)r éré r)rÚcopyrÚtype)rrÚvrrrÚtest_userlist_copy>s zUserListTest.test_userlist_copy)r+r,r-rrr rr!r#r$r&r'r1r7Ú __classcell__rrrrrs  rÚ__main__) Ú collectionsrÚtestrZunittestZ CommonTestrr+ÚmainrrrrÚs  =