a +ÅAgúã@sXddlZddlmmZddlZddlmZejdd„ƒZ dd„Z dd„Z d d „Z dS) éN)ÚappcCsdtjd<t ¡S)NTÚTESTING)rÚconfigÚ test_client©rrúD/home/cmiss/Jenkins/workspace/SPARC-API-DEV/tests/test_thumbnails.pyÚclients rc CsÊ| d¡}|j}|j}d}||ƒ}|j}d}||ƒ}|sªddt ¡vsPt |¡rZt |¡ndt |¡t |¡t |¡t |¡t |¡t |¡t |¡dœ} t t  | ¡ƒ‚d}}}}}}}dS)Nzo/thumbnail/segmentation?path=37/files/derivative/sub-54-5/TJU_3Scan_ratheart54-5_updated_06_11_19_Fiducials.xmlúutf-8zfdata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAFIElEQVR4nO1ZTYgcRRT+aiaaZTCXDeglú¥assert %(py14)s {%(py14)s = %(py10)s {%(py10)s = %(py8)s {%(py8)s = %(py4)s {%(py4)s = %(py2)s {%(py2)s = %(py0)s.data }.decode }(%(py6)s) }.startswith }(%(py12)s) }Úr©Úpy0Úpy2Úpy4Úpy6Úpy8Úpy10Úpy12Úpy14© ÚgetÚdataÚdecodeÚ startswithÚ @py_builtinsÚlocalsÚ @pytest_arÚ_should_repr_global_nameÚ _safereprÚAssertionErrorÚ_format_explanation) rr Ú @py_assert1Ú @py_assert3Ú @py_assert5Ú @py_assert7Ú @py_assert9Ú @py_assert11Ú @py_assert13Ú @py_format15rrrÚtest_segmentation_thumbnail s r)c CsÚddddœ}|jd|d}|j}|j}d}||ƒ}|j}d}||ƒ} | sºd d t ¡vs`t |¡rjt |¡nd t |¡t |¡t |¡t |¡t |¡t |¡t | ¡d œ} t t  | ¡ƒ‚d}}}}}}} dS) Né%ézOfiles/derivative/sub-54-5/TJU_3Scan_ratheart54-5_updated_06_11_19_Fiducials.xml©Ú datasetIdÚversionÚpathú/thumbnail/neurolucida©Ú query_stringr zViVBORw0KGgoAAAANSUhEUgAAAtAAAAIcCAIAAABQHw4EAAAgAElEQVR4Xuy9P4hjWZbu+zWv4erChVwNAyPjQqr r r r© rr2r r!r"r#r$r%r&r'r(rrrÚtest_neurolucida_thumbnails r4c CsÚddddœ}|jd|d}|j}|j}d}||ƒ}|j}d}||ƒ} | sºd d t ¡vs`t |¡rjt |¡nd t |¡t |¡t |¡t |¡t |¡t |¡t | ¡d œ} t t  | ¡ƒ‚d}}}}}}} dS) NéÝr+zOfiles/derivative/sub-M168/digital-traces/pCm168_AAV_Z_20x_191211_S3B_lx_IGS.xmlr,r0r1r ZMiVBORw0KGgoAAAANSUhEUgAAAtAAAAIcCAIAAABQHw4EAAAgAElEQVR4Xuzdd3xV9f348fe569ydmr r r rr3rrrÚ&test_neurolucida_thumbnail_dataset_221s r6) ÚbuiltinsrÚ_pytest.assertion.rewriteÚ assertionÚrewriterÚpytestrÚfixturerr)r4r6rrrrÚs "