�
�
5Xc@sdZddlZddlZejjejje�ejej�Zejj de�ddl
Z
ddlZeje
�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 <genexpr>*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_.*_testthex_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.pytdo_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__RRRR R$texittargv(((s=/usr/lib/python2.7/site-packages/passlib/tests/tox_support.pyt<module>s * |