ó
‹wÛjc           @   sª   d  Z  d d l Z d d l m Z m Z m Z m Z e d ƒ Z d d l Z d „  Z	 d e j
 f d „  ƒ  YZ d e j
 f d	 „  ƒ  YZ d
 „  Z e d k r¦ e ƒ  n  d S(   s#    Test suite for the code in msilib iÿÿÿÿN(   t   TESTFNt   import_modulet   run_unittestt   unlinkt   msilibc          C   s5   t  d }  t j |  t j d d d d ƒ } | |  f S(   Ns   .msis   Python Testst   product_codes   1.0t   PSF(   R    R   t   init_databaset   schema(   t   patht   db(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyR      s    
	t   MsiDatabaseTestCasec           B   s   e  Z d  „  Z d „  Z RS(   c         C   s  t  ƒ  \ } } zì | j d ƒ } | j t j ƒ } |  j | d ƒ | j t j d d ƒ | j t j ƒ } |  j | d d ƒ | j t j d d ƒ | j t j ƒ } |  j | d d ƒ | j t j d d ƒ | j t j ƒ } |  j | d d ƒ Wd  d  } d  } t | ƒ Xd  S(   Nic   s   Installation Databaset   aiç  iè  ié  (	   R   t   GetSummaryInformationt   GetPropertyR   t	   PID_TITLEt   assertEqualt   SetPropertyt   NoneR   (   t   selfR
   t   db_patht   sum_infot   title(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt&   test_summaryinfo_getproperty_issue1104   s"    c         C   s‡   t  ƒ  \ } } |  j t j j ƒ t j | d d d d ƒ } t j d ƒ } t j | | d  t	 d d d ƒ } | j
 d  | d  d ƒ d  S(	   Ni    t   Features	   A featuret   Pythont   CABt	   TARGETDIRt	   SourceDirt   keyfile(   R   t
   addCleanupR   t   _directoriest   clearR   R   t	   DirectoryR   R    t   start_component(   R   R
   R   t   featuret   cabt   dir(    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt&   test_directory_start_component_keyfile.   s    (   t   __name__t
   __module__R   R&   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyR      s   	t   Test_make_idc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   sè   The Identifier data type is a text string. Identifiers may contain the
    ASCII characters A-Z (a-z), digits, underscores (_), or periods (.).
    However, every identifier must begin with either a letter or an
    underscore.
    c         C   s�   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(   Nt   shortt   nochangerequireds   one.dott   _R   (   R   R   t   make_id(   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt   test_is_no_change_required@   s    c         C   s6   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(   Ns   9.shorts   _9.shorts   .shorts   _.short(   R   R   R-   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt   test_invalid_first_charN   s    c         C   s6   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(   Ns   .s‚orts   _.s_orts	   .s‚o?*+rts
   _.s_o___rt(   R   R   R-   (   R   (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt   test_invalid_any_charT   s    (   R'   R(   t   __doc__R.   R/   R0   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyR)   8   s   		c           C   s   t  t ƒ d  S(   N(   R   R'   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt	   test_main[   s    t   __main__(   R1   t   unittestt   test_supportR    R   R   R   R   t   msilib.schemaR   t   TestCaseR   R)   R2   R'   (    (    (    s†   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_msilib.pyt   <module>   s   "	##	