d>ddlZddlmcmZddlmZdZdZ dZ dS)N)DhWpTestct5}||j}d}||k}|stjd|fd||fdt jvstj|rtj|ndtj|tj|dz}dd|iz}ttj |dx}x}}ddddS#1swxYwYdS)Nr==)z1%(py2)s {%(py2)s = %(py0)s.exit_code } == %(py5)sapppy0py2py5assert %(py7)spy7) rrun exit_code @pytest_ar_call_reprcompare @py_builtinslocals_should_repr_global_name _safereprAssertionError_format_explanation)r @py_assert1 @py_assert4 @py_assert3 @py_format6 @py_format8s :/home/matt/dreamhost/git/dreamhost/dhwp/tests/test_dhwp.py test_dhwprsa "s  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!""""""""""""""""""sCC22C69C6cdg}t|5}||j}d}||u}|stjd|fd||fdt jvstj|rtj|ndtj|tj|dz}dd |iz}ttj |dx}x}}ddddS#1swxYwYdS) Nz--debugargvT)is)z-%(py2)s {%(py2)s = %(py0)s.debug } is %(py5)srrr r ) rrdebugrrrrrrrr)r!rrrrrrs rtest_dhwp_debugr$ so ;D t   !                                                                               !!!!!!!!!!!!!!!!!!sCC55C9<C9c^dg}t|5}|tt||j\}}|d}d}||k}|slt jd|fd||ft j|t j|dz}dd |iz}tt j |dx}x}}|j } d }| |} | sd d tj vst j |rt j|nd t j| t j|t j| d z}tt j |dx} x}} dddn #1swxYwYgd}t|5}||j\}}|d}d}||k}|slt jd|fd||ft j|t j|dz}dd |iz}tt j |dx}x}}|j } d}| |} | sd d tj vst j |rt j|nd t j| t j|t j| d z}tt j |dx} x}} ddddS#1swxYwYdS)Ncommand1r foobarr)z%(py1)s == %(py4)s)py1py4zassert %(py6)spy6z Foo => barzFassert %(py6)s {%(py6)s = %(py2)s {%(py2)s = %(py0)s.find }(%(py4)s) }output)r r r*r+)r&z--fooz --not-barznot-barzFoo => not-bar)rrprintvars last_renderedrrrrrfindrrr) r!rdatar, @py_assert0r @py_assert2 @py_format5 @py_format7r @py_assert5s r test_command1r7s% r?si"""!!!-----r>