ó
‹wÛjc           @   sg   d  d l  m Z d  d l Z e j d ƒ Z d e j f d „  ƒ  YZ d „  Z e d k rc e ƒ  n  d S(   iÿÿÿÿ(   t   test_supportNt   nist   NisTestsc           B   s   e  Z d  „  Z RS(   c         C   s÷   y t  j ƒ  } Wn) t  j k
 r; } |  j t | ƒ ƒ n Xy | j d ƒ Wn t k
 r` n Xd } x‰ | D]� } t  j | ƒ } x_ | j ƒ  D]Q \ } } | s¨ q� n  t  j	 | | ƒ | k rÚ |  j
 d | | f ƒ q� d } Pq� W| rn Pqn qn Wd  S(   Ns   passwd.adjunct.bynamei    s)   NIS match failed for key `%s' in map `%s'i   (   R   t   mapst   errort   skipTestt   strt   removet
   ValueErrort   catt   itemst   matcht   fail(   t   selfR   t   msgt   donet   nismapt   mappingt   kt   v(    (    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_nis.pyt	   test_maps   s(    (   t   __name__t
   __module__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_nis.pyR      s   c           C   s   t  j t ƒ d  S(   N(   R    t   run_unittestR   (    (    (    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_nis.pyt	   test_main$   s    t   __main__(	   t   testR    t   unittestt   import_moduleR   t   TestCaseR   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_nis.pyt   <module>   s   	