/usr/lib/python2.6/site-packages/pbr/tests
Edit: /usr/lib/python2.6/site-packages/pbr/tests/test_hooks.pyc (3044B)
Ñò
;vVc @ s{ d d k Z d d k Z d d k l Z d d k l Z l Z d d k l Z d d k l Z d e i
f d „ ƒ YZ d S( iÿÿÿÿN( t text_content( t Containst EndsWith( t base( t utilt TestHooksc B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c C sŽ t t | ƒ i ƒ t i t i i | i d ƒ ƒ i i
ƒ } zF | ~ } | i d d d ƒ | i d d d ƒ | i d d d ƒ Wd QXd S(
Ns setup.cfgt globals setup-hookssQ pbr_testpackage._setup_hooks.test_hook_1
pbr_testpackage._setup_hooks.test_hook_2t build_exts pre-hook.test_pre_hooks* pbr_testpackage._setup_hooks.test_pre_hooks post-hook.test_post_hooks+ pbr_testpackage._setup_hooks.test_post_hook( t superR t setUpR t open_configt ost patht joint package_dirt __exit__t __enter__t set( t selft _[1]t cfg( ( s1 /tmp/pip-build-cD3xZi/pbr/pbr/tests/test_hooks.pyR 4 s 2c C sD | i d ƒ \ } } } d | j p t ‚ | d j p t ‚ d S( s„ Test setup_hooks.
Test that setup_hooks listed in the [global] section of setup.cfg are
executed in order.
t egg_infos test_hook_1
test_hook_2i N( t run_setupt AssertionError( R t stdoutt _t return_code( ( s1 /tmp/pip-build-cD3xZi/pbr/pbr/tests/test_hooks.pyt test_global_setup_hooks@ s c C sÍ | i d ƒ \ } } } d | j p t ‚ d | j p t ‚ | d j p t ‚ | i d ƒ \ } } } | i d t | ƒ ƒ t i d ƒ | j p t ‚ | i | t d ƒ ƒ | d j p t ‚ d S( s‘ Test command hooks.
Simple test that the appropriate command hooks run at the
beginning/end of the appropriate command.
R s build_ext pre-hooks build_ext post-hooki R t stderrs¤
running build_ext
running pre_hook pbr_testpackage._setup_hooks.test_pre_hook for command build_ext
build_ext pre-hook
N( R R t addDetailUniqueNameR t textwrapt dedentt
expectThatR ( R R R R R ( ( s1 /tmp/pip-build-cD3xZi/pbr/pbr/tests/test_hooks.pyt test_command_hooksK s c C s? | i d ƒ \ } } } | i | ƒ | i | t d ƒ ƒ d S( Ns --help-commandss testr ( R t assertFalset
assertThatR ( R R R R ( ( s1 /tmp/pip-build-cD3xZi/pbr/pbr/tests/test_hooks.pyt test_custom_commands_knowna s
( t __name__t
__module__R R R! R$ ( ( ( s1 /tmp/pip-build-cD3xZi/pbr/pbr/tests/test_hooks.pyR 3 s ( R R t testtools.contentR t testtools.matchersR R t pbr.testsR R t BaseTestCaseR ( ( ( s1 /tmp/pip-build-cD3xZi/pbr/pbr/tests/test_hooks.pyt
) s