PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  qY(@sdZddlZddlmZddlmZdZddZGd d d eZGd ddeZ Gd d d eZ ddZ GdddeZ dS) TestSuiteN)case)utilTcCs#t||dd}|dS)NcSsdS)Nrrr$/opt/python35/lib/python3.5/suite.py sz!_call_if_exists..)getattr)parentattrfuncrrr_call_if_exists sr c@seZdZdZdZfddZddZddZd d Zd d Z d dZ ddZ ddZ ddZ ddZddZdS) BaseTestSuitezNA simple test suite that doesn't provide class or module shared fixtures. TcCs#g|_d|_|j|dS)Nr)_tests_removed_testsaddTests)selftestsrrr__init__s  zBaseTestSuite.__init__cCs dtj|jt|fS)Nz <%s tests=%s>)rstrclass __class__list)rrrr__repr__szBaseTestSuite.__repr__cCs,t||jstSt|t|kS)N) isinstancerNotImplementedr)rotherrrr__eq__szBaseTestSuite.__eq__cCs t|jS)N)iterr)rrrr__iter__"szBaseTestSuite.__iter__cCs4|j}x$|D]}|r||j7}qW|S)N)rcountTestCases)rZcasestestrrrr%s   zBaseTestSuite.countTestCasescCsnt|s'tdjt|t|trZt|tjt frZtd|j j |dS)Nz{} is not callablezNTestCases and TestSuites must be instantiated before passing them to addTest()) callable TypeErrorformatreprrtype issubclassrZTestCaserrappend)rr rrraddTest,s   zBaseTestSuite.addTestcCs=t|trtdx|D]}|j|q"WdS)Nz0tests must be an iterable of tests, not a string)rstrr"r()rrr rrrr6s  zBaseTestSuite.addTestscCsKxDt|D]6\}}|jr#P|||jr |j|q W|S)N) enumerate shouldStop_cleanup_removeTestAtIndex)rresultindexr rrrrun<s   zBaseTestSuite.runc Cs[y|j|}Wntk r%Yn2Xt|drJ|j|j7_d|j|s,      *z TestSuite._tearDownPreviousClassN) r6r7r8r9r0r5r@rPr?rIrBr>rrrrr\s !     c@s|eZdZdZdZddZddZddZd d Zd d Z d dZ ddZ ddZ dS)rWz Placeholder for a TestCase inside a result. As far as a TestResult is concerned, this looks exactly like a unit test. Used to insert arbitrary errors into a test suite run. NcCs ||_dS)N) description)rr]rrrrsz_ErrorHolder.__init__cCs|jS)N)r])rrrridsz_ErrorHolder.idcCsdS)Nr)rrrrshortDescription sz_ErrorHolder.shortDescriptioncCsd|jfS)Nz)r])rrrrr#sz_ErrorHolder.__repr__cCs |jS)N)r^)rrrr__str__&sz_ErrorHolder.__str__cCsdS)Nr)rr.rrrr0)sz_ErrorHolder.runcCs |j|S)N)r0)rr.rrrr4.sz_ErrorHolder.__call__cCsdS)Nrr)rrrrr1sz_ErrorHolder.countTestCases) r6r7r8r9ZfailureExceptionrr^r_rr`r0r4rrrrrrWs        rWc Cs+yt|Wntk r&dSYnXdS)z?A crude way to tell apart testcases and suites with duck-typingTF)rr")r rrrr=4s   r=c@s(eZdZdZdZdZdZdS)rCzCUsed by the TestSuite to hold previous class when running in debug.NF)r6r7r8r9rAr<r+rrrrrC=s rC) r9rRrrZ __unittestr objectrrrWr=rCrrrrs  L&