%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_str.pyc |
ó Nêáac @ s· d d l Z d d l Z d d l Z d d l m Z m Z d e f d „ ƒ YZ d e j e j e j e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k r³ e ƒ n d S( iÿÿÿÿN( t test_supportt string_testst StrSubclassc B s e Z RS( ( t __name__t __module__( ( ( s) /usr/local/lib/python2.7/test/test_str.pyR s t StrTestc B sé e Z e Z d „ Z d „ Z d „ Z e j d „ ƒ Z d „ Z d „ Z e j e j d k pr e j d ƒ d k d ƒ 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 | S( N( ( t selft obj( ( s) /usr/local/lib/python2.7/test/test_str.pyt fixtype s c C s× | j t d ƒ d ƒ | j t d ƒ d ƒ | j t d ƒ d ƒ | j t d ƒ d ƒ | j t g ƒ d ƒ | j t i ƒ d ƒ g } | j | ƒ | j t | ƒ d ƒ i } | | d <| j t | ƒ d ƒ d S( Nt i t 0l s ()s []s {}s [[...]]s {0: {...}}( ( t assertEqualt strt append( R t a( ( s) /usr/local/lib/python2.7/test/test_str.pyt test_basic_creation s c C s* t j j | ƒ | j t d j d ƒ d S( Ns %ci4 ( R t MixinStrUnicodeUserStringTestt test_formattingt assertRaisest OverflowErrort __mod__( R ( ( s) /usr/local/lib/python2.7/test/test_str.pyR % s c C sG d d l m } d j | d ƒ } | j t ƒ | d } Wd QXd S( Niÿÿÿÿ( t INT_MAXs %.{}fi g¸…ëQ¸@( t _testcapiR t formatR t ValueError( R R t format_stringt result( ( s) /usr/local/lib/python2.7/test/test_str.pyt test_formatting_huge_precision) s c C s: d j t j d ƒ } | j t ƒ | d } Wd QXd S( Ns %{}fi g¸…ëQ¸@( R t syst maxsizeR R ( R R R ( ( s) /usr/local/lib/python2.7/test/test_str.pyt test_formatting_huge_width0 s c C sh d d d „ ƒ Y} d d d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} d t f d „ ƒ Y} | j t | ƒ ƒ j d ƒ ƒ | j t | ƒ ƒ d ƒ | j t | ƒ ƒ d ƒ | j t | ƒ ƒ d ƒ | j t | d ƒ ƒ d ƒ | j t | d ƒ ƒ d ƒ | j t | d ƒ ƒ d ƒ | j t | d ƒ ƒ d ƒ | j t | d ƒ ƒ d ƒ | j t t | d ƒ ƒ ƒ | ƒ | j t | d ƒ ƒ d ƒ | j t t | d ƒ ƒ ƒ t ƒ | j t | d ƒ ƒ d ƒ | j t | d ƒ ƒ d ƒ d S( Nt Foo0c B s e Z d „ Z RS( c S s d S( Nu foo( ( R ( ( s) /usr/local/lib/python2.7/test/test_str.pyt __unicode__8 s ( R R R ( ( ( s) /usr/local/lib/python2.7/test/test_str.pyR 7 s t Foo1c B s e Z d „ Z RS( c S s d S( Nt foo( ( R ( ( s) /usr/local/lib/python2.7/test/test_str.pyt __str__<