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/mapping_tests.pyo |
³ò h”Rc @ sa d d k Z d d k Z d e i f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿNt BasicTestMappingProtocolc B s° e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s h d d <d d <d d <S( s^ Return a dictionary of values which are invariant by storage in the object under test.i i t value1t key1i t key2( i i i ( ( t self( ( s. /usr/local/lib/python2.5/test/mapping_tests.pyt _reference s c C s | i ƒ S( s Return an empty mapping object( t type2test( R ( ( s. /usr/local/lib/python2.5/test/mapping_tests.pyt _empty_mapping s c C s7 | i ƒ } x$ | i ƒ D] \ } } | | | <q W| S( sK Return a mapping object with the value contained in data dictionary( R t items( R t datat xt keyt value( ( s. /usr/local/lib/python2.5/test/mapping_tests.pyt _full_mapping s c O sŠ t i i | | | Ž | i ƒ i ƒ | _ | i i ƒ \ } } h | | <| _ | i i ƒ \ } } h | | <| _ | | i | <d S( N( t unittestt TestCaset __init__R t copyt referencet popitemt othert inmapping( R t argst kwR R ( ( s. /usr/local/lib/python2.5/test/mapping_tests.pyR s c s ˆ i ƒ } t | ƒ } ˆ i ˆ i ƒ ‰ ˆ | j o | } n x1 ˆ i i ƒ D] \ } } ˆ i ˆ | | ƒ qQ Wˆ i i ƒ d ‰ ˆ i t ‡ ‡ f d † ƒ ˆ i t | ƒ d ƒ ˆ i t ˆ ƒ t ˆ i ƒ ƒ x: ˆ i D]/ } ˆ i ˆ i | ƒ ƒ ˆ i | ˆ j ƒ qã Wx: ˆ i D]/ } ˆ i ˆ i | ƒ ƒ ˆ i | ˆ j ƒ q Wˆ i t | | ƒ d ƒ ˆ i t ˆ ˆ ƒ d ƒ ˆ i t | ˆ ƒ d ƒ ˆ i t ˆ | ƒ d ƒ | o ˆ i d ƒ n ˆ p ˆ i d ƒ n ‡ f d † } | ˆ i ƒ ˆ i ƒ ˆ i i ƒ ƒ | t ˆ ƒ ˆ i ƒ ˆ i i ƒ ƒ | ˆ i ƒ ˆ i ƒ ˆ i i ƒ ƒ | ˆ i ƒ ˆ i ƒ ˆ i i ƒ ƒ ˆ i ƒ i ƒ \ } } ˆ i i ƒ i ƒ \ ‰ } ˆ i ˆ i | | ƒ | ƒ ˆ i ˆ i ˆ | ƒ | ƒ ˆ i ˆ ˆ j ƒ d S( Ni c s ˆ ˆ S( ( ( ( t knownkeyt d( s. /usr/local/lib/python2.5/test/mapping_tests.pyt <lambda>5 s iÿÿÿÿi s# Empty mapping must compare to Falses! Full mapping must compare to Truec sr ˆ i t | d ƒ ƒ ˆ i t | d ƒ ƒ t | ƒ } ˆ i t | ƒ t | ƒ j o t | ƒ j n ƒ d S( Nt nextt __iter__( t assert_t hasattrt listt set( t itert lstt refR ( R ( s. /usr/local/lib/python2.5/test/mapping_tests.pyt check_iterandlistI s ( R t dictR R R t assertEqualR t keyst failUnlessRaisest KeyErrort lenR t has_keyt failIft cmpt failt iterkeysR! t itervaluest valuest iteritemsR t get( R t pt p1R R t kR$ t knownvalue( ( R R R s. /usr/local/lib/python2.5/test/mapping_tests.pyt test_read* sL %%%%c s› | i ƒ ‰ x; | i i ƒ D]* \ ‰ } | ˆ ˆ <| i ˆ ˆ | ƒ q Wx: | i i ƒ D]) ‰ ˆ ˆ =| i t ‡ ‡ f d † ƒ qZ W| i ƒ ‰ ˆ i | i ƒ | i t ˆ ƒ | i ƒ ˆ i ƒ } | i ƒ ‰ ˆ i | ƒ | i t ˆ ƒ | i ƒ | i | i ƒ } | i ƒ i ƒ \ ‰ } | i i ƒ i ƒ \ } } | i | i ˆ | ƒ | ƒ | i | ˆ | ƒ | i | i | | ƒ | ƒ | i | | | ƒ | i | i | ƒ | ƒ | i | | j ƒ | i t | i | ƒ d } | | | <| i | i | | ƒ | ƒ | i | | j ƒ | i | i | | ƒ | ƒ | i ƒ \ ‰ } | i ˆ | j ƒ | i | | i ˆ ƒ | i ƒ ‰ | i t ˆ i ƒ d S( Nc s ˆ ˆ S( ( ( ( R4 R ( s. /usr/local/lib/python2.5/test/mapping_tests.pyR b s i ( R R R R&