asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T 3 \(@s|dZddlZddlmZddlmZdZddZGd d d eZGd ddeZ Gd d d eZ ddZ GdddeZ dS) TestSuiteN)case)utilTcCst||dd}|dS)NcSsdS)Nrrr&/usr/lib64/python3.6/unittest/suite.py sz!_call_if_exists..)getattr)parentattrfuncrrr_call_if_exists sr c@speZdZdZdZffddZddZddZd d Zd d Z d dZ ddZ ddZ ddZ ddZddZdS) BaseTestSuitezNA simple test suite that doesn't provide class or module shared fixtures. TcCsg|_d|_|j|dS)Nr)_tests_removed_testsaddTests)selftestsrrr__init__szBaseTestSuite.__init__cCsdtj|jt|fS)Nz <%s tests=%s>)rstrclass __class__list)rrrr__repr__szBaseTestSuite.__repr__cCs t||jstSt|t|kS)N) isinstancerNotImplementedr)rotherrrr__eq__s zBaseTestSuite.__eq__cCs t|jS)N)iterr)rrrr__iter__"szBaseTestSuite.__iter__cCs(|j}x|D]}|r ||j7}q W|S)N)rcountTestCases)rZcasestestrrrr%s  zBaseTestSuite.countTestCasescCsLt|stdjt|t|trdSt|ddrNdSt|dd}|dk rt|dz^y |WnNtk r}z2t|trtj|}d|}|j|||WYdd}~XnXWdt|d XdS) NrAr;Fr<rD tearDownClassrFztearDownClass (%s)rG) r rr rHrrCrrrI) rr r.rJrKr[rLrMrNrrrr>s,         $z TestSuite._tearDownPreviousClassN)F) r6r7r8r9r0r5r@rPr?rIrBr>rrrrr\s ! c@sTeZdZdZdZddZddZddZd 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.shortDescriptioncCs d|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_r0r4rrrrrrWsrWc Cs&y t|Wntk r dSXdS)z?A crude way to tell apart testcases and suites with duck-typingTF)rr")r rrrr=4s  r=c@seZdZdZdZdZdZdS)rCzCUsed by the TestSuite to hold previous class when running in debug.NF)r6r7r8r9rAr<r+rrrrrC=srC) r9rRrrZ __unittestr objectrrrWr=rCrrrrs  L3&