ó
£„öUc           @   s=   d  d l  m Z d  d l m Z d e j f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   content(   t   baset   TestCommandsc           B   s   e  Z d  „  Z d „  Z RS(   c         C   sn   |  j  d ƒ \ } } } |  j d t j | ƒ ƒ |  j d t j | ƒ ƒ |  j d | ƒ |  j | d ƒ d S(   sÃ   Test custom build_py command.

        Test that a custom subclass of the build_py command runs when listed in
        the commands [global] option, rather than the normal build command.
        t   build_pyt   stdoutt   stderrs    Running custom build_py command.i    N(   t	   run_setupt	   addDetailR    t   text_contentt   assertInt   assertEqual(   t   selfR   R   t   return_code(    (    s;   /usr/lib/python2.7/dist-packages/pbr/tests/test_commands.pyt   test_custom_build_py_command/   s
    c         C   sn   |  j  d ƒ \ } } } |  j d t j | ƒ ƒ |  j d t j | ƒ ƒ |  j d | ƒ |  j | d ƒ d S(   s    Test custom rpm_version command.t   rpm_versionR   R   s   Extracting rpm versioni    N(   R   R   R    R   R	   R
   (   R   R   R   R   (    (    s;   /usr/lib/python2.7/dist-packages/pbr/tests/test_commands.pyt"   test_custom_rpm_version_py_command<   s
    (   t   __name__t
   __module__R   R   (    (    (    s;   /usr/lib/python2.7/dist-packages/pbr/tests/test_commands.pyR   .   s   	N(   t	   testtoolsR    t	   pbr.testsR   t   BaseTestCaseR   (    (    (    s;   /usr/lib/python2.7/dist-packages/pbr/tests/test_commands.pyt   <module>)   s   