ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
]\¬Qc@s_dZddlZddlZddlZddlZddlZddlZddlZddlZddl    m
Z
ddl m Z m Z mZmZmZeZdZdefd„ƒYZd    efd
„ƒYZd efd „ƒYZd „Zd„Zd„Zd„Zd„Zdefd„ƒYZdefd„ƒYZdefd„ƒYZ dS(sTest case implementationiÿÿÿÿNi(tresult(tstrclasst    safe_reprtunorderable_list_differencet_count_diff_all_purposet_count_diff_hashables@
Diff is %s characters long. Set self.maxDiff to None to see it.tSkipTestcBseZdZRS(s©
    Raise this exception in a test to skip it.
 
    Usually you can use TestCase.skipTest() or one of the skipping decorators
    instead of raising this directly.
    (t__name__t
__module__t__doc__(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRst_ExpectedFailurecBseZdZd„ZRS(s\
    Raise this when a test is expected to fail.
 
    This is an implementation detail.
    cCs tt|ƒjƒ||_dS(N(tsuperR
t__init__texc_info(tselfR ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR )s(RRR    R (((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR
"st_UnexpectedSuccesscBseZdZRS(s7
    The test was supposed to fail, but it didn't!
    (RRR    (((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR-scCs|S(N((tobj((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt_id3scs‡fd†}|S(s&
    Unconditionally skip a test.
    csUt|ttjfƒs?tj|ƒ‡fd†ƒ}|}nt|_ˆ|_|S(Ncstˆƒ‚dS(N(R(targstkwargs(treason(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt skip_wrapper<s(    t
isinstancettypettypest    ClassTypet    functoolstwrapstTruet__unittest_skip__t__unittest_skip_why__(t    test_itemR(R(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt    decorator:s             ((RR ((RsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytskip6s
cCs|rt|ƒStS(s/
    Skip a test if the condition is true.
    (R!R(t    conditionR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytskipIfFs
cCs|st|ƒStS(s3
    Skip a test unless the condition is true.
    (R!R(R"R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt
skipUnlessNs
cs"tjˆƒ‡fd†ƒ}|S(NcsAyˆ||ŽWn#tk
r6ttjƒƒ‚nXt‚dS(N(t    ExceptionR
tsysR R(RR(tfunc(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytwrapperXs
 (RR(R'R(((R'sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytexpectedFailureWst_AssertRaisesContextcBs,eZdZdd„Zd„Zd„ZRS(sCA context manager used to implement TestCase.assertRaises* methods.cCs"||_|j|_||_dS(N(texpectedtfailureExceptiontexpected_regexp(RR+t    test_caseR-((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR es     cCs|S(N((R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt    __enter__jscCsô|dkrZy|jj}Wn tk
r>t|jƒ}nX|jdj|ƒƒ‚nt||jƒsptS||_    |j
dkrŒt S|j
}t |t ƒr¶tj|ƒ}n|jt|ƒƒsð|jd|jt|ƒfƒ‚nt S(Ns{0} not raiseds"%s" does not match "%s"(tNoneR+RtAttributeErrortstrR,tformatt
issubclasstFalset    exceptionR-RRt
basestringtretcompiletsearchtpattern(Rtexc_typet    exc_valuettbtexc_nameR-((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__exit__ms&              N(RRR    R0R R/R@(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR*bs     tTestCasecBs)eZdZeZeZd@ZdAZeZ    dd„Z
d„Z d„Z d    „Z d
„Zed „ƒZed „ƒZd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZdBd„Zd„Zd„Zd„Z d„Z!dBd„Z"dBd„Z#dBd„Z$d„Z%dBd „Z&d!„Z'dBd"„Z(dBd#„Z)dBd$„Z*dBdBdBd%„Z+dBdBdBd&„Z,e)Z-e*Z.e+Z/e,Z0e$Z1d'„Z2e2e)ƒZ3e2e*ƒZ4e2e+ƒZ5e2e,ƒZ6e2e$ƒZ7e2e&ƒZ8e2e#ƒZ9dBdBd(„Z:d)„Z;dBd*„Z<dBd+„Z=dBd,„Z>dBd-„Z?dBd.„Z@dBd/„ZAdBd0„ZBdBd1„ZCdBd2„ZDdBd3„ZEdBd4„ZFdBd5„ZGdBd6„ZHdBd7„ZIdBd8„ZJdBd9„ZKdBd:„ZLdBd;„ZMdBd<„ZNdBd=„ZOdBd>„ZPdBd?„ZQRS(CsWA class whose instances are single test cases.
 
    By default, the test code itself should be placed in a method named
    'runTest'.
 
    If the fixture may be used for many test cases, create as
    many test methods as are needed. When instantiating such a TestCase
    subclass, specify in the constructor arguments the name of the test method
    that the instance is to execute.
 
    Test authors should subclass TestCase for their own tests. Construction
    and deconstruction of the test's environment ('fixture') can be
    implemented by overriding the 'setUp' and 'tearDown' methods respectively.
 
    If it is necessary to override the __init__ method, the base class
    __init__ method must always be called. It is important that subclasses
    should not change the signature of their __init__ method, since instances
    of the classes are instantiated automatically by parts of the framework
    in order to be run.
 
    When subclassing TestCase, you can set these attributes:
    * failureException: determines which exception will be raised when
        the instance's assertion methods fail; test methods raising this
        exception will be deemed to have 'failed' rather than 'errored'.
    * longMessage: determines whether long messages (including repr of
        objects used in assert methods) will be printed on failure in *addition*
        to any explicit message passed.
    * maxDiff: sets the maximum length of a diff in failure messages
        by assert methods using difflib. It is looked up as an instance
        attribute so can be configured by individual tests if required.
    iPiiitrunTestcCsì||_d|_yt||ƒ}Wn*tk
rQtd|j|fƒ‚nX|j|_g|_    i|_
|j t dƒ|j t dƒ|j tdƒ|j tdƒ|j tdƒy|j tdƒWntk
rçnXdS(sÅCreate an instance of the class that will use the named test
           method when executed. Raises a ValueError if the instance does
           not have a method with the specified name.
        sno such test method in %s: %stassertDictEqualtassertListEqualtassertTupleEqualtassertSetEqualtassertMultiLineEqualN(t_testMethodNameR0t_resultForDoCleanupstgetattrR1t
ValueErrort    __class__R    t_testMethodDoct    _cleanupst_type_equality_funcstaddTypeEqualityFunctdicttlistttupletsett    frozensettunicodet    NameError(Rt
methodNamet
testMethod((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR ´s&                   cCs||j|<dS(s[Add a type specific assertEqual style function to compare a type.
 
        This method is for use by TestCase subclasses that need to register
        their own type equality functions to provide nicer error messages.
 
        Args:
            typeobj: The data type to call this function on when both values
                    are of the same type in assertEqual().
            function: The callable taking two arguments and an optional
                    msg= argument that raises self.failureException with a
                    useful error message when the two arguments are not equal.
        N(RO(Rttypeobjtfunction((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRPÒs cOs|jj|||fƒdS(sAdd a function, with arguments, to be called when the test is
        completed. Functions added are called on a LIFO basis and are
        called after tearDown on test failure or success.
 
        Cleanup items are called even if setUp fails (unlike tearDown).N(RNtappend(RR[RR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt
addCleanupáscCsdS(sAHook method for setting up the test fixture before exercising it.N((R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytsetUpéscCsdS(sAHook method for deconstructing the test fixture after testing it.N((R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyttearDowníscCsdS(sKHook method for setting up class fixture before running tests in the class.N((tcls((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt
setUpClassñscCsdS(sVHook method for deconstructing the class fixture after running all tests in the class.N((R`((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt tearDownClassõscCsdS(Ni((R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytcountTestCasesùscCs
tjƒS(N(Rt
TestResult(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytdefaultTestResultüscCs,|j}|r(|jdƒdjƒp+dS(såReturns a one-line description of the test, or None if no
        description has been provided.
 
        The default implementation of this method returns the first line of
        the specified test method's docstring.
        s
iN(RMtsplittstripR0(Rtdoc((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytshortDescriptionÿs    cCsdt|jƒ|jfS(Ns%s.%s(RRLRH(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytid
scCs,t|ƒt|ƒk    rtS|j|jkS(N(RtNotImplementedRH(Rtother((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__eq__ scCs ||k S(N((RRl((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__ne__scCstt|ƒ|jfƒS(N(thashRRH(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__hash__scCsd|jt|jƒfS(Ns%s (%s)(RHRRL(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__str__scCsdt|jƒ|jfS(Ns<%s testMethod=%s>(RRLRH(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__repr__scCsRt|ddƒ}|dk    r.|||ƒn tjdtdƒ|j|ƒdS(NtaddSkips4TestResult has no addSkip method, skips not reportedi(RJR0twarningstwarntRuntimeWarningt
addSuccess(RRRRs((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt_addSkip s      
c Csr|}|dkrI|jƒ}t|ddƒ}|dk    rI|ƒqIn||_|j|ƒt||jƒ}t|jdtƒs˜t|dtƒrèz;t|jddƒp¿t|ddƒ}|j||ƒWd|j    |ƒXdSz>t}y|j
ƒWnXt k
r*}|j|t |ƒƒnÍt k
r=‚nº|j|tjƒƒnžXy |ƒWnBt k
r{‚n5|jk
r¤|j|tjƒƒn tk
r}t|ddƒ}|dk    rä|||jƒq°tjdtƒ|j|ƒn¬tk
ret|ddƒ}    |    dk    r<|    |ƒq°tjdtƒ|j|tjƒƒnKt k
r}|j|t |ƒƒn#|j|tjƒƒnXt}y|jƒWn6t k
rÔ‚n#|j|tjƒƒt}nX|jƒ}
|o |
}|r%|j|ƒnWd|j    |ƒ|dkrmt|d    dƒ} | dk    rm| ƒqmnXdS(
Nt startTestRunRRttaddExpectedFailures@TestResult has no addExpectedFailure method, reporting as passestaddUnexpectedSuccesssDTestResult has no addUnexpectedSuccess method, reporting as failurest stopTestRun(R0ReRJRIt    startTestRHRLR5RxtstopTestR^RR2tKeyboardInterrupttaddErrorR&R R,t
addFailureR
RtRuRvRwRRR_t
doCleanups( RRt orig_resultRyRYtskip_whytsuccessteR{R|tcleanUpSuccessR}((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytrun)sˆ                         
     cCsˆ|j}t}xr|jrƒ|jjdƒ\}}}y|||ŽWqtk
r]‚qt}|j|tjƒƒqXqW|S(sNExecute all cleanup functions. Normally called for you after
        tearDown.iÿÿÿÿ(    RIRRNtpopR€R5RR&R (RRtokR[RR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRƒzs      cOs|j||ŽS(N(R‰(RRtkwds((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt__call__ŠscCsc|jƒt||jƒƒ|jƒx5|jr^|jjdƒ\}}}|||Žq*WdS(s6Run the test without collecting errors in a TestResultiÿÿÿÿN(R^RJRHR_RNRŠ(RR[RR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytdebugs 
 
 cCst|ƒ‚dS(sSkip this test.N(R(RR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytskipTest–scCs|j|ƒ‚dS(s)Fail immediately, with the given message.N(R,(Rtmsg((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytfailšscCs8|r4|j|dt|ƒƒ}|j|ƒ‚ndS(s#Check that the expression is false.s%s is not falseN(t_formatMessageRR,(RtexprR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertFalsežscCs8|s4|j|dt|ƒƒ}|j|ƒ‚ndS(s"Check that the expression is true.s%s is not trueN(R’RR,(RR“R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt
assertTrue¤scCsd|js|p|S|dkr#|Syd||fSWn(tk
r_dt|ƒt|ƒfSXdS(s‚Honour the longMessage attribute when generating failure messages.
        If longMessage is False this means:
        * Use only an explicit message if it is provided
        * Otherwise use the standard message for the assert
 
        If longMessage is True:
        * Use the standard message
        * If an explicit message is provided, plus ' : ' and the explicit message
        s%s : %sN(t longMessageR0tUnicodeDecodeErrorR(RRt standardMsg((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR’ªs
   
  cOs=t||ƒ}|dkr|S||||ŽWdQXdS(s³Fail unless an exception of class excClass is raised
           by callableObj when invoked with arguments args and keyword
           arguments kwargs. If a different type of exception is
           raised, it will not be caught, and the test case will be
           deemed to have suffered an error, exactly as for an
           unexpected exception.
 
           If called with callableObj omitted or None, will return a
           context object used like this::
 
                with self.assertRaises(SomeException):
                    do_something()
 
           The context manager keeps a reference to the exception as
           the 'exception' attribute. This allows you to inspect the
           exception after the assertion::
 
               with self.assertRaises(SomeException) as cm:
                   do_something()
               the_exception = cm.exception
               self.assertEqual(the_exception.error_code, 3)
        N(R*R0(RtexcClasst callableObjRRtcontext((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertRaisesÀs
 cCskt|ƒt|ƒkrd|jjt|ƒƒ}|dk    rdt|tƒr]t||ƒ}n|Sn|jS(sGet a detailed comparison function for the types of the two args.
 
        Returns: A callable accepting (first, second, msg=None) that will
        raise a failure exception if first != second with a useful human
        readable error message for those types.
        N(RROtgetR0RR7RJt_baseAssertEqual(Rtfirsttsecondtasserter((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt_getAssertEqualityFuncÝs cCsP||ksLdt|ƒt|ƒf}|j||ƒ}|j|ƒ‚ndS(s:The default assertEqual implementation, not type specific.s%s != %sN(RR’R,(RRŸR RR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRž÷s cCs)|j||ƒ}|||d|ƒdS(s[Fail if the two objects are unequal as determined by the '=='
           operator.
        RN(R¢(RRŸR Rtassertion_func((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertEqualþscCsJ||ksF|j|dt|ƒt|ƒfƒ}|j|ƒ‚ndS(sYFail if the two objects are equal as determined by the '!='
           operator.
        s%s == %sN(R’RR,(RRŸR R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertNotEquals cCs||krdS|dk    r7|dk    r7tdƒ‚n|dk    r…t||ƒ|kr]dSdt|ƒt|ƒt|ƒf}nW|dkršd}ntt||ƒ|ƒdkr½dSdt|ƒt|ƒ|f}|j||ƒ}|j|ƒ‚dS(sFail if the two objects are unequal as determined by their
           difference rounded to the given number of decimal places
           (default 7) and comparing to zero, or by comparing that the
           between the two objects is more than the given delta.
 
           Note that decimal places (from zero) are usually not the same
           as significant digits (measured from the most signficant digit).
 
           If the two objects compare equal then they will automatically
           compare almost equal.
        Ns specify delta or places not boths%s != %s within %s deltaiis%s != %s within %r places(R0t    TypeErrortabsRtroundR’R,(RRŸR tplacesRtdeltaR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertAlmostEquals&                 
cCs |dk    r'|dk    r'tdƒ‚n|dk    r‚||k rZt||ƒ|krZdSdt|ƒt|ƒt|ƒf}nd|dkr—d}n||k rÇtt||ƒ|ƒdkrÇdSdt|ƒt|ƒ|f}|j||ƒ}|j|ƒ‚dS(sÚFail if the two objects are equal as determined by their
           difference rounded to the given number of decimal places
           (default 7) and comparing to zero, or by comparing that the
           between the two objects is less than the given delta.
 
           Note that decimal places (from zero) are usually not the same
           as significant digits (measured from the most signficant digit).
 
           Objects that are equal automatically fail.
        s specify delta or places not bothNs%s == %s within %s deltaiis%s == %s within %r places(R0R¦R§RR¨R’R,(RRŸR R©RRªR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertNotAlmostEqual5s"  #          ,     
cs‡fd†}|S(Ncs,tjdjˆjƒtdƒˆ||ŽS(NsPlease use {0} instead.i(RtRuR3RtPendingDeprecationWarning(RR(t original_func(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytdeprecated_funcbs
((R®R¯((R®sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt
_deprecateasc    Csô|dk    rz|j}t||ƒsF|jd|t|ƒfƒ‚nt||ƒs€|jd|t|ƒfƒ‚q€nd}d}yt|ƒ}Wn!ttfk
r¹d|}nX|dkrýyt|ƒ}Wqýttfk
rùd|}qýXn|dkr|||krdSt|ƒ}    t|ƒ}
t|    ƒdkrT|    d d}    nt|
ƒdkrw|
d d}
n|jƒ|    |
f} d    | }xøt    t
||ƒƒD]­} y|| } Wn/tt tfk
rñ|d
| |f7}PnXy|| }Wn/tt tfk
r1|d | |f7}PnX| |kr¬|d | | |f7}Pq¬q¬W||kr‘|dkr‘t |ƒt |ƒkr‘dS||kr|d |||f7}y|d|||f7}Wqytt tfk
r|d||f7}qyXq|||kr||d|||f7}y|d|||f7}Wqytt tfk
ru|d||f7}qyXq|n|}ddj tjtj|ƒjƒtj|ƒjƒƒƒ}|j||ƒ}|j||ƒ}|j|ƒdS(sAAn equality assertion for ordered sequences (like lists and tuples).
 
        For the purposes of this function, a valid ordered sequence type is one
        which can be indexed, has a length, and has an equality operator.
 
        Args:
            seq1: The first sequence to compare.
            seq2: The second sequence to compare.
            seq_type: The expected datatype of the sequences, or None if no
                    datatype should be enforced.
            msg: Optional message to use on failure instead of a list of
                    differences.
        sFirst sequence is not a %s: %ssSecond sequence is not a %s: %stsequences(First %s has no length.    Non-sequence?s)Second %s has no length.    Non-sequence?Nis...s%ss differ: %s != %s
s(
Unable to index element %d of first %s
s)
Unable to index element %d of second %s
s#
First differing element %d:
%s
%s
s+
First %s contains %d additional elements.
sFirst extra element %d:
%s
s'Unable to index element %d of first %s
s,
Second %s contains %d additional elements.
s(Unable to index element %d of second %s
s
(R0RRR,RtlenR¦tNotImplementedErrort
capitalizetxrangetmint
IndexErrorRtjointdifflibtndifftpprinttpformatt
splitlinest_truncateMessageR’R‘(Rtseq1tseq2Rtseq_typet seq_type_namet    differingtlen1tlen2t    seq1_reprt    seq2_reprtelementstititem1titem2R˜tdiffMsg((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertSequenceEqualqsš                   
       cCsA|j}|dks't|ƒ|kr/||S|tt|ƒS(N(tmaxDiffR0R²t DIFF_OMITTED(Rtmessagetdifftmax_diff((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR¾Øs    cCs|j|||dtƒdS(sA list-specific equality assertion.
 
        Args:
            list1: The first list to compare.
            list2: The second list to compare.
            msg: Optional message to use on failure instead of a list of
                    differences.
 
        RÁN(RÍRR(Rtlist1tlist2R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRDÞs
cCs|j|||dtƒdS(sA tuple-specific equality assertion.
 
        Args:
            tuple1: The first tuple to compare.
            tuple2: The second tuple to compare.
            msg: Optional message to use on failure instead of a list of
                    differences.
        RÁN(RÍRS(Rttuple1ttuple2R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyREês    c
Cspy|j|ƒ}WnGtk
r9}|jd|ƒn$tk
r\}|jd|ƒnXy|j|ƒ}WnGtk
r–}|jd|ƒn$tk
r¹}|jd|ƒnX|pÃ|sÊdSg}|r
|jdƒx$|D]}|jt|ƒƒqêWn|rD|jdƒx$|D]}|jt|ƒƒq$Wndj|ƒ}    |j|j||    ƒƒdS(s¯A set-specific equality assertion.
 
        Args:
            set1: The first set to compare.
            set2: The second set to compare.
            msg: Optional message to use on failure instead of a list of
                    differences.
 
        assertSetEqual uses ducktyping to support different types of sets, and
        is optimized for sets specifically (parameters must support a
        difference method).
        s/invalid type when attempting set difference: %ss2first argument does not support set difference: %ss3second argument does not support set difference: %sNs*Items in the first set but not the second:s*Items in the second set but not the first:s
(t
differenceR¦R‘R1R\treprR¸R’(
Rtset1tset2Rt difference1R‡t difference2tlinestitemR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRFõs2      cCsH||krDdt|ƒt|ƒf}|j|j||ƒƒndS(sDJust like self.assertTrue(a in b), but with a nicer default message.s%s not found in %sN(RR‘R’(Rtmembert    containerRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertIn s  cCsH||krDdt|ƒt|ƒf}|j|j||ƒƒndS(sHJust like self.assertTrue(a not in b), but with a nicer default message.s%s unexpectedly found in %sN(RR‘R’(RRßRàRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertNotIn's  cCsH||k    rDdt|ƒt|ƒf}|j|j||ƒƒndS(sDJust like self.assertTrue(a is b), but with a nicer default message.s %s is not %sN(RR‘R’(Rtexpr1texpr2RR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertIs.s  cCs?||kr;dt|ƒf}|j|j||ƒƒndS(sHJust like self.assertTrue(a is not b), but with a nicer default message.sunexpectedly identical: %sN(RR‘R’(RRãRäRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertIsNot5s cCsÃ|j|tdƒ|j|tdƒ||kr¿dt|tƒt|tƒf}ddjtjtj|ƒj    ƒtj|ƒj    ƒƒƒ}|j
||ƒ}|j |j ||ƒƒndS(Ns"First argument is not a dictionarys#Second argument is not a dictionarys%s != %ss
( tassertIsInstanceRQRRR¸R¹RºR»R¼R½R¾R‘R’(Rtd1td2RR˜RÑ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRC;s "c    Csg}g}xy|jƒD]k\}}||krA|j|ƒq|||kr|jdt|ƒt|ƒt||ƒfƒqqW|p‘|s˜dSd}|rÄddjd„|Dƒƒ}n|r÷|rÝ|d7}n|ddj|ƒ7}n|j|j||ƒƒdS(    s0Checks whether actual is a superset of expected.s%s, expected: %s, actual: %sNRzs Missing: %st,css|]}t|ƒVqdS(N(R(t.0tm((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pys    <genexpr>Xss; sMismatched values: %s(t    iteritemsR\RR¸R‘R’(    RR+tactualRtmissingt
mismatchedtkeytvalueR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertDictContainsSubsetGs(       c    Cs9t|ƒt|ƒ}}tjƒ¢tjr_x-dddgD]}tjd|tƒq?Wny"tj|ƒ}tj|ƒ}Wn t    k
r£t
||ƒ}    n X||kr´dSt ||ƒ}    WdQX|    r5d}
g|    D]} d| ^qÜ} dj | ƒ} |j |
| ƒ}
|j||
ƒ}|j|ƒndS(    sÓAn unordered sequence specific comparison. It asserts that
        actual_seq and expected_seq have the same element counts.
        Equivalent to::
 
            self.assertEqual(Counter(iter(actual_seq)),
                             Counter(iter(expected_seq)))
 
        Asserts that each element has the same count in both sequences.
        Example:
            - [0, 1, 1] and [1, 0, 1] compare equal.
            - [0, 0, 1] and [0, 1] compare unequal.
        s'(code|dict|type) inequality comparisonss,builtin_function_or_method order comparisonsscomparing unequal typestignoreNsElement counts were not equal:
s First has %d, Second has %d:  %rs
(RRRttcatch_warningsR&t py3kwarningtfilterwarningstDeprecationWarningt collectionstCounterR¦RRR¸R¾R’R‘(Rt expected_seqt
actual_seqRt    first_seqt
second_seqt_msgRŸR t differencesR˜RÑRÝRÌ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertItemsEqualas,         cCsG|j|tdƒ|j|tdƒ||krCt|ƒ|jks\t|ƒ|jkrr|j|||ƒn|jtƒ}|jtƒ}t|ƒdkrÔ|jdƒ|krÔ|dg}|dg}ndt|tƒt|tƒf}ddj    t
j ||ƒƒ}|j ||ƒ}|j |j||ƒƒndS(    s-Assert that two multi-line strings are equal.sFirst argument is not a stringsSecond argument is not a stringis
s
s%s != %sRzN(RçR7R²t_diffThresholdRžR½RRgRR¸R¹RºR¾R‘R’(RRŸR Rt
firstlinest secondlinesR˜RÑ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRG‰s$   ' cCsH||ksDdt|ƒt|ƒf}|j|j||ƒƒndS(sCJust like self.assertTrue(a < b), but with a nicer default message.s%s not less than %sN(RR‘R’(RtatbRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt
assertLess s cCsH||ksDdt|ƒt|ƒf}|j|j||ƒƒndS(sDJust like self.assertTrue(a <= b), but with a nicer default message.s%s not less than or equal to %sN(RR‘R’(RRRRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertLessEqual¦s cCsH||ksDdt|ƒt|ƒf}|j|j||ƒƒndS(sCJust like self.assertTrue(a > b), but with a nicer default message.s%s not greater than %sN(RR‘R’(RRRRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertGreater¬s cCsH||ksDdt|ƒt|ƒf}|j|j||ƒƒndS(sDJust like self.assertTrue(a >= b), but with a nicer default message.s"%s not greater than or equal to %sN(RR‘R’(RRRRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertGreaterEqual²s cCs?|dk    r;dt|ƒf}|j|j||ƒƒndS(sCSame as self.assertTrue(obj is None), with a nicer default message.s%s is not NoneN(R0RR‘R’(RRRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt assertIsNone¸s cCs2|dkr.d}|j|j||ƒƒndS(s(Included for symmetry with assertIsNone.sunexpectedly NoneN(R0R‘R’(RRRR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertIsNotNone¾s cCsEt||ƒsAdt|ƒ|f}|j|j||ƒƒndS(sTSame as self.assertTrue(isinstance(obj, cls)), with a nicer
        default message.s%s is not an instance of %rN(RRR‘R’(RRR`RR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRçÄscCsEt||ƒrAdt|ƒ|f}|j|j||ƒƒndS(s,Included for symmetry with assertIsInstance.s%s is an instance of %rN(RRR‘R’(RRR`RR˜((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertNotIsInstanceËscOs@t|||ƒ}|dkr"|S||||ŽWdQXdS(sAsserts that the message in a raised exception matches a regexp.
 
        Args:
            expected_exception: Exception class expected to be raised.
            expected_regexp: Regexp (re pattern object or string) expected
                    to be found in error message.
            callable_obj: Function to be called.
            args: Extra args.
            kwargs: Extra kwargs.
        N(R*R0(Rtexpected_exceptionR-t callable_objRRR›((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertRaisesRegexpÑs
 cCsht|tƒr!tj|ƒ}n|j|ƒsd|p9d}d||j|f}|j|ƒ‚ndS(s=Fail the test unless the text matches the regular expression.sRegexp didn't matchs%s: %r not found in %rN(RR7R8R9R:R;R,(RttextR-R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertRegexpMatchesãs  cCs„t|tƒr!tj|ƒ}n|j|ƒ}|r€|p?d}d|||jƒ|jƒ!|j|f}|j|ƒ‚ndS(s9Fail the test if the text matches the regular expression.sRegexp matcheds%s: %r matches %r in %rN(    RR7R8R9R:tstarttendR;R,(RRtunexpected_regexpRtmatch((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pytassertNotRegexpMatchesìs 
i€iN(RRRR    tAssertionErrorR,R5R–RÎRt_classSetupFailedR RPR]R^R_t classmethodRaRbRcReRiRjRmRnRpRqRrRxR0R‰RƒRRŽRR‘R”R•R’RœR¢RžR¤R¥R«R¬t assertEqualstassertNotEqualstassertAlmostEqualstassertNotAlmostEqualstassert_R°tfailUnlessEqualt failIfEqualtfailUnlessAlmostEqualtfailIfAlmostEqualt
failUnlesstfailUnlessRaisestfailIfRÍR¾RDRERFRáRâRåRæRCRóRRGRRR    R
R R RçR RRR(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRA…s˜                                                              Q                                  
&$           g     +      (              tFunctionTestCasecBszeZdZd d d d„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „ZRS( sIA test case that wraps a test function.
 
    This is useful for slipping pre-existing test functions into the
    unittest framework. Optionally, set-up and tidy-up functions can be
    supplied. As with TestCase, the tidy-up ('tearDown') function will
    always be called if the set-up ('setUp') function ran successfully.
    cCs;tt|ƒjƒ||_||_||_||_dS(N(R R'R t
_setUpFunct _tearDownFunct    _testFunct _description(RttestFuncR^R_t description((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR s
            cCs |jdk    r|jƒndS(N(R(R0(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR^
scCs |jdk    r|jƒndS(N(R)R0(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR_scCs|jƒdS(N(R*(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRBscCs
|jjS(N(R*R(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRjscCs\t||jƒstS|j|jko[|j|jko[|j|jko[|j|jkS(N(RRLRkR(R)R*R+(RRl((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRms cCs ||k S(N((RRl((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRn!scCs+tt|ƒ|j|j|j|jfƒS(N(RoRR(R)R*R+(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRp$scCsdt|jƒ|jjfS(Ns%s (%s)(RRLR*R(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRq(scCsdt|jƒ|jfS(Ns <%s tec=%s>(RRLR*(R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRr,scCsE|jdk    r|jS|jj}|rA|jdƒdjƒpDdS(Ns
i(R+R0R*R    RfRg(RRh((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyRi0s N(RRR    R0R R^R_RBRjRmRnRpRqRrRi(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyR'ús                                        (!R    RùR&RR¹R»R8RRtRzRtutilRRRRRRt
__unittestRÏR%RR
RRR!R#R$R)tobjectR*RAR'(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/unittest/case.pyt<module>s4        (                              #ÿÿÿx