tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Q\¬Qc@sŽddlZddlZddlZddlZddlmZdjd dƒZdejfd„ƒYZ    d    „Z
e d
krŠe
ƒndS( iÿÿÿÿN(t test_supports <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>aDate</key>
        <date>2004-10-26T10:33:33Z</date>
        <key>aDict</key>
        <dict>
                <key>aFalseValue</key>
                <false/>
                <key>aTrueValue</key>
                <true/>
                <key>aUnicodeValue</key>
                <string>Mässig, Maß</string>
                <key>anotherString</key>
                <string>&lt;hello &amp; 'hi' there!&gt;</string>
                <key>deeperDict</key>
                <dict>
                        <key>a</key>
                        <integer>17</integer>
                        <key>b</key>
                        <real>32.5</real>
                        <key>c</key>
                        <array>
                                <integer>1</integer>
                                <integer>2</integer>
                                <string>text</string>
                        </array>
                </dict>
        </dict>
        <key>aFloat</key>
        <real>0.5</real>
        <key>aList</key>
        <array>
                <string>A</string>
                <string>B</string>
                <integer>12</integer>
                <real>32.5</real>
                <array>
                        <integer>1</integer>
                        <integer>2</integer>
                        <integer>3</integer>
                </array>
        </array>
        <key>aString</key>
        <string>Doodah</string>
        <key>anInt</key>
        <integer>728</integer>
        <key>nestedData</key>
        <array>
                <data>
                PGxvdHMgb2YgYmluYXJ5IGd1bms+AAECAzxsb3RzIG9mIGJpbmFyeSBndW5r
                PgABAgM8bG90cyBvZiBiaW5hcnkgZ3Vuaz4AAQIDPGxvdHMgb2YgYmluYXJ5
                IGd1bms+AAECAzxsb3RzIG9mIGJpbmFyeSBndW5rPgABAgM8bG90cyBvZiBi
                aW5hcnkgZ3Vuaz4AAQIDPGxvdHMgb2YgYmluYXJ5IGd1bms+AAECAzxsb3Rz
                IG9mIGJpbmFyeSBndW5rPgABAgM8bG90cyBvZiBiaW5hcnkgZ3Vuaz4AAQID
                PGxvdHMgb2YgYmluYXJ5IGd1bms+AAECAw==
                </data>
        </array>
        <key>someData</key>
        <data>
        PGJpbmFyeSBndW5rPg==
        </data>
        <key>someMoreData</key>
        <data>
        PGxvdHMgb2YgYmluYXJ5IGd1bms+AAECAzxsb3RzIG9mIGJpbmFyeSBndW5rPgABAgM8
        bG90cyBvZiBiaW5hcnkgZ3Vuaz4AAQIDPGxvdHMgb2YgYmluYXJ5IGd1bms+AAECAzxs
        b3RzIG9mIGJpbmFyeSBndW5rPgABAgM8bG90cyBvZiBiaW5hcnkgZ3Vuaz4AAQIDPGxv
        dHMgb2YgYmluYXJ5IGd1bms+AAECAzxsb3RzIG9mIGJpbmFyeSBndW5rPgABAgM8bG90
        cyBvZiBiaW5hcnkgZ3Vuaz4AAQIDPGxvdHMgb2YgYmluYXJ5IGd1bms+AAECAw==
        </data>
        <key>Åbenraa</key>
        <string>That was a unicode key.</string>
</dict>
</plist>
t is    t TestPlistlibcBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „ZRS(cCs"ytjtjƒWnnXdS(N(tostunlinkRtTESTFN(tself((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttearDown\scCsâtddddddddd    d
ggd d d ddtdddddtdtdtddddddd    dgƒƒdtjdƒdtjdd ƒd!tjdd ƒgd"tjd#d d$d d%d%ƒƒ    }d&|d'<|S((NtaStringtDoodahtaListtAtBi g@@@iiitaFloatgà?tanIntiØtaDictt anotherStrings<hello & 'hi' there!>t aUnicodeValueu Mässig, Maßt
aTrueValuet aFalseValuet
deeperDicttaitbtcttexttsomeDatas <binary gunk>t someMoreDatas<lots of binary gunk>i
t
nestedDatataDateiÔii!sThat was a unicode key.uÅbenraa(tdicttTruetFalsetplistlibtDatatdatetime(Rtpl((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyt_createbs"'!
cCs<|jƒ}|j|ddƒ|j|ddtƒdS(NRR    RR(R$t assertEqualR(RR#((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyt test_createws cCsQ|jƒ}tj|tjƒtjtjƒ}|jt|ƒt|ƒƒdS(N(R$R t
writePlistRRt    readPlistR%R(RR#tpl2((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_io|s cCsi|jƒ}tj|ƒ}tj|ƒ}|jt|ƒt|ƒƒtj|ƒ}|j||ƒdS(N(R$R twritePlistToStringtreadPlistFromStringR%R(RR#tdataR)tdata2((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyt test_string‚s  cCsTitjdƒd6gggggggg}|jtjtj|ƒƒ|ƒdS(Ntaaaaaattest(R R!R%R,R+(RR-((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_indentation_arrayŠs.c Cstiiiiiiiiitjdƒd6d6d6d6d6d6d6d    6d
6}|jtjtj|ƒƒ|ƒdS( NR0t9t8t7t6t5t4t3t2t1(R R!R%R,R+(RR-((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_indentation_dictŽsNcCsciiiitjdƒd6gggggd6gd6d6}|jtjtj|ƒƒ|ƒdS(NR0R1R9R:R;(R R!R%R,R+(RR-((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_indentation_dict_mix’s=cCs5tjtƒ}tj|ƒ}|j|tdƒdS(Ns2generated data was not identical to Apple's output(R R,tTESTDATAR+R%(RR#R-((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_appleformatting–s cCs>|jƒ}tjtƒ}|jt|ƒt|ƒdƒdS(Ns2generated data was not identical to Apple's output(R$R R,R>R%R(RR#R)((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_appleformattingfromliteralœs cCspddlm}|ƒ}|jƒ}tj||ƒtj||jƒƒƒ}|jt|ƒt|ƒƒdS(Niÿÿÿÿ(tStringIO(RAR$R R'R(tgetvalueR%R(RRAtfR#R)((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyt test_stringio¢s      cCspddlm}|ƒ}|jƒ}tj||ƒtj||jƒƒƒ}|jt|ƒt|ƒƒdS(Niÿÿÿÿ(RA(    t    cStringIORAR$R R'R(RBR%R(RRARCR#R)((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_cstringioªs      cCsoxhtdƒD]Z}t|ƒ}d|}|dksA|dkrQtj|ƒq |jttj|ƒq WdS(Ni€sstring containing %si s
   (trangetchrR R+t assertRaisest
ValueError(RtiRt
testString((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_controlcharacters²s 
    cCsld}ddddg}tjtj|ƒƒ}tjtj|ƒƒ}|j||ƒ|j||ƒdS(Ntabciii(R R,R+R%(Rttest1ttest2tresult1tresult2((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyttest_nondictroot¾s (t__name__t
__module__RR$R&R*R/R2R<R=R?R@RDRFRMRS(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyRZs                                                     cCstjtƒdS(N(Rt run_unittestR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyt    test_mainÇst__main__s        ( tunittestR RR"R1RtreplaceR>tTestCaseRRWRT(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_plistlib.pyt<module>s    Pm