wec@smdZddlTddlZdejfdYZidZedkridZejd d ndS( s"Self-tests for Crypto.Util.Counteri(t*Nt CounterTestscBsGeZdZdZdZdZdZdZdZRS(cCsddlmadS(Ni(tCounter(t Crypto.UtilR(tself((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pytsetUp scCs(tjd}tjddt}dS(s Big endianit little_endianN(RtnewtFalse(Rtc((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyttest_BE$scCstjddt}dS(s Little endianiRN(RRtTrue(RR ((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyttest_LE)scCs,tjdd}|jttjddS(Ntnbitsii(RRt assertRaisest ValueError(RR ((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyt test_nbits-scCstjddtd}dS(Nitprefixtxx(RRtb(RR ((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyt test_prefix1scCstjddtd}dS(NitsuffixR(RRR(RR ((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyt test_suffix4scCs5tjddd}|jttjddddS(Nit initial_valueiii(RRRR(RR ((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyttest_iv7s( t__name__t __module__RR R RRRR(((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyRs      cCsddlm}|tS(Ni(tlist_test_cases(tCrypto.SelfTest.st_commonRR(tconfigR((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyt get_tests;st__main__cCstjtS(N(tunittestt TestSuiteR(((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyt@st defaultTesttsuite( t__doc__tCrypto.Util.py3compatR tTestCaseRRRR$tmain(((sG/usr/lib64/python2.7/site-packages/Crypto/SelfTest/Util/test_Counter.pyts