ó ö 5Xc@sdZddlZddlZejjejjeƒejejƒZejj deƒddl Z ddl Z e j e ƒZddlmZgZdZd„Zd„Zd„Zd „Ze d krýddlZejeejd ŒpödƒndS( s7passlib.tests.tox_support - helper script for tox testsiÿÿÿÿNi(tprint_spasslib.tests.test_handlerscsÖ|stGHdSd}t|ƒ}x3trV|ddkrRd|d}|d4q$Pq$Wdd lm}gt|ƒD]D‰ˆjd ƒ rtt‡fd †|Dƒƒrttd ˆ|^qt}td j |ƒƒ| S(s6return list of hash algorithm tests that match regexesNtis--methodt.iiiÿÿÿÿ(t test_handlerst_c3s!|]}tj|ˆƒVqdS(N(tretmatch(t.0targ(tname(s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pys *st:s ( tTH_PATHtlisttTruet passlib.testsRtdirt startswithtanyRtjoin(targstsuffixRtnames((R s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pyt do_hash_testss   DcCsU|dks|dkrAtddƒ|dkrQtdƒqQntd|ƒ‚dS(s return list of preset test namestdjangos django-hashessdjango_.*_testt hex_md5_testspasslib.tests.test_ext_djangosunknown name: %rN(RRt ValueError(R ((s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pytdo_preset_tests.s   cCs4ddlm}|tjj|dƒd|ƒdS(sEwrite fake GAE ``app.yaml`` to current directory so nosegae will workiÿÿÿÿ(tset_filesapp.yamls£application: fake-app version: 2 runtime: %s api_version: 1 threadsafe: no handlers: - url: /.* script: dummy.py libraries: - name: django version: "latest" N(tpasslib.tests.utilsRtostpathR(RtruntimeR((s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pyt do_setup_gae7scGstƒd||ŒS(Ntdo_(tglobals(tcmdR((s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pytmainJst__main__i(t__doc__RtsysRRtdirnamet__file__tpardirtroot_dirtinsertRtloggingt getLoggert__name__tlogtpasslib.utils.compatRt__all__R RRR R$texittargv(((s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pyts *