ffdZddlTddlZGddejZifdZedkrdZejd dSdS) z"Self-tests for Crypto.Util.Counter)*Nc8eZdZdZdZdZdZdZdZdZ dS) CounterTestscddlmadS)Nr)Counter) Crypto.Utilr)selfs /builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Util/test_Counter.pysetUpzCounterTests.setUp s''''''''crtd}tdd}dS)z Big endianF little_endianNrnewr cs r test_BEzCounterTests.test_BE$s, KK   KK5K 1 1r c>tdd}dS)z Little endianrTrNrrs r test_LEzCounterTests.test_LE)s KK4K 0 0r ctd}|ttjddS)Nr)nbitsrr assertRaises ValueErrorrs r test_nbitszCounterTests.test_nbits-s5 KKcK " " *gk377777r cXtdtd}dS)Nrxx)prefixrrbrs r test_prefixzCounterTests.test_prefix1! KKAdGGK , ,r cXtdtd}dS)Nrr )suffixr"rs r test_suffixzCounterTests.test_suffix4r%r ctdd}|ttjdddS)Nr) initial_valueirrs r test_ivzCounterTests.test_iv7s< KK1K - - *gk2WMMMMMr N) __name__ __module__ __qualname__r rrrr$r(r-r r rrs(((222 111888------NNNNNr rc.ddlm}|tS)Nr)list_test_cases)Crypto.SelfTest.st_commonr3r)configr3s r get_testsr6;s$999999 ?< ( ((r __main__cBtjtS)N)unittest TestSuiter6r1r r r;@sH&y{{33r suite) defaultTest) __doc__Crypto.Util.py3compatr9TestCaserr6r.r<mainr1r r rBs2)(####NNNNN8$NNN8)))) z 3 3EHMg&&&&&&r