ó ö 5Xc@sLdZddlZddlmZddlmZdefd„ƒYZdS(s?tests for passlib.win32 -- (c) Assurance Technologies 2003-2009iÿÿÿÿN(tTestCase(tutUtilTestcBs)eZdZd„Zd„Zd„ZRS(s test util funcs in passlib.win32cCs'tt|ƒjƒtjddƒdS(Ntignores(the 'passlib.win32' module is deprecated(tsuperRtsetUptwarningstfilterwarnings(tself((s</usr/lib/python2.7/site-packages/passlib/tests/test_win32.pyRs cCszddlm}xcdtdƒfdtdƒfdtdƒfgD].\}}||d tƒ}|j||ƒqDWdS( Niÿÿÿÿ(t raw_lmhasht OLDPASSWORDt c9b81d939d6fd80cd408e6b105741864t NEWPASSWORDt 09eeab5aa415d6e4d408e6b105741864twelcomet c23413a8a1e7665faad3b435b51404eethex(t passlib.win32R RtTruet assertEqual(RR tsecretthashtresult((s</usr/lib/python2.7/site-packages/passlib/tests/test_win32.pyt test_lmhashscCs{tjddƒddlm}xTdtdƒfdtdƒfgD].\}}||d tƒ}|j||ƒqEWdS( NRs$nthash\.raw_nthash\(\) is deprecatediÿÿÿÿ(t raw_nthashR t 6677b2c394311355b54f25eec5bfacf5R t 256781a62031289d3c2c98c14f1efc8cR(RRRRRRR(RRRRR((s</usr/lib/python2.7/site-packages/passlib/tests/test_win32.pyt test_nthash%s (t__name__t __module__t__doc__RRR(((s</usr/lib/python2.7/site-packages/passlib/tests/test_win32.pyRs  (RRtpasslib.tests.utilsRtpasslib.utils.compatRR(((s</usr/lib/python2.7/site-packages/passlib/tests/test_win32.pyts