Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_grp.pyo |
³ò h”Rc @ sl d Z d d k Z d d k Z d d k l Z d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( s Test script for the grp module.iÿÿÿÿN( t test_supportt GroupDatabaseTestCasec B s# e Z d „ Z d „ Z d „ Z RS( c C sÚ | i t | ƒ d ƒ | i | d | i ƒ | i t | i t ƒ ƒ | i | d | i ƒ | i t | i t ƒ ƒ | i | d | i ƒ | i t | i t ƒ ƒ | i | d | i ƒ | i t | i t ƒ ƒ d S( Ni i i i i ( t assertEqualt lent gr_namet assert_t isinstancet basestringt gr_passwdt gr_gidt intt gr_memt list( t selft value( ( s) /usr/local/lib/python2.5/test/test_grp.pyt check_value s c C sÐ t i ƒ } x | D] } | i | ƒ q Wt | ƒ d j o d Sn x„ | D]| } t i | i ƒ } | i | ƒ | i | i | i ƒ t i | i ƒ } | i | ƒ | i | i i ƒ | i i ƒ ƒ qL Wd S( Niè ( t grpt getgrallR R t getgrgidR R t getgrnamR t lower( R t entriest et e2( ( s) /usr/local/lib/python2.5/test/test_grp.pyt test_values s c C sï | i t t i ƒ | i t t i ƒ | i t t i d ƒ h } h } xP t i ƒ D]B \ } } } } | p | d j o qU n | | | <| | | <qU W| i ƒ } d } | | } xÜ | | j oÎ t d | ƒ } x t t | ƒ ƒ D]] } | | d j o d | | <Pqé | | d j o qé qé t t | | ƒ d ƒ | | <Pqé W| d } y | | } Wn t j o Pn Xd i t d | ƒ ƒ } qº W| i t t i | ƒ d } x | | j o | d d } qµW| i t t i | ƒ d S( Ni* t +i t zt At Zi t i i i ( t assertRaisest TypeErrorR R R R t keyst mapt Nonet xrangeR t chrt ordt IndexErrort joint KeyError( R t bynamest bygidst nt pt gt memt allnamest nameit fakenamet charst it fakegid( ( s) /usr/local/lib/python2.5/test/test_grp.pyt test_errors* sL ( t __name__t __module__R R R5 ( ( ( s) /usr/local/lib/python2.5/test/test_grp.pyR s c C s t i t ƒ d S( N( R t run_unittestR ( ( ( s) /usr/local/lib/python2.5/test/test_grp.pyt test_mainX s t __main__( t __doc__R t unittestt testR t TestCaseR R9 R6 ( ( ( s) /usr/local/lib/python2.5/test/test_grp.pys <module> s Q