ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ (SSc@sdZyddlmZWnek r7d ZZnhXddlmZmZm Z m Z m Z ddl m Z ddlmZdZdefdYZd S( s nosetests setuptools command ---------------------------- The easiest way to run tests with nose is to use the `nosetests` setuptools command:: python setup.py nosetests This command has one *major* benefit over the standard `test` command: *all nose plugins are supported*. To configure the `nosetests` command, add a [nosetests] section to your setup.cfg. The [nosetests] section can contain any command line arguments that nosetests supports. The differences between issuing an option on the command line and adding it to setup.cfg are: * In setup.cfg, the -- prefix must be excluded * In setup.cfg, command line flags that take no arguments must be given an argument flag (1, T or TRUE for active, 0, F or FALSE for inactive) Here's an example [nosetests] setup.cfg section:: [nosetests] verbosity=1 detailed-errors=1 with-coverage=1 cover-package=nose debug=nose.loader pdb=1 pdb-failures=1 If you commonly run nosetests with a large number of options, using the nosetests setuptools command and configuring with setup.cfg can make running your tests much less tedious. (Note that the same options and format supported in setup.cfg are supported in all other config files, and the nosetests script will also load config files.) Another reason to run tests with the command is that the command will install packages listed in your `tests_require`, as well as doing a complete build of your package before running tests. For packages with dependencies or that build C extensions, using the setuptools command can be more convenient than building by hand and running the nosetests script. Bootstrapping ------------- If you are distributing your project and want users to be able to run tests without having to install nose themselves, add nose to the setup_requires section of your setup():: setup( # ... setup_requires=['nose>=1.0'] ) This will direct setuptools to download and activate nose during the setup process, making the ``nosetests`` command available. i(tCommand(tConfigtoption_blacklisttuser_config_filestflagt_bool(t TestProgram(tDefaultPluginManagercCsg}x|jD]}|jddtkr3qn|jdd}|jdkr`|d}nd }|jr|jdd}n|j|||jpdfqW|S( sAconvert a optparse option list into a distutils option tuple listiit store_truet store_falset=it(RR N(t option_listt _long_optsRtactiontNonet _short_optstappendthelp(tparsertopt_listtoptt long_namet short_name((s>/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pytget_user_optionsIs  #t nosetestscBseeZdZededeZejZe eZ dZ dZ dZ dZRS(sRun unit tests using noseteststfilestpluginscCsmi|_xT|jjD]F}|jdd}|jdd}||j|/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pytinitialize_options`s  cCsdS(snothing to do hereN((R#((s>/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pytfinalize_optionsmsc Cst|jdtr|jd}d|_|j|jd}|j}|jd}||_|j|jd}d|_|jn/|jd|jd}d|_|j|jj r|jj |jj n|jj r|jj |jj n|jd}dd|jg}xr|j j D]a\}} |tkr^q@nt||} | d k r@|j|j|jd d | q@q@Wtd |d |jd S(shensure tests are capable of being run, then run nose.main with a reconstructed argument listtuse_2to3tbuild_pyitegg_infot build_extiRs--whereRRtargvtconfigN(tgetattrt distributiontFalsetget_finalized_commandtinplacetrunt build_libtegg_baset run_commandtinstall_requirestfetch_build_eggst tests_requireRtitemsRRtextendtcfgToArgR Rt_nosetests__config( R#R)tbpy_cmdt build_pathR*R+tei_cmdR,R%R$tvalue((s>/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pyR3qs@                &cCsg}d|}|jj|}|jdkrut|sVtd||fnt|r|j|qn|j||g|S(Ns--RR sInvalid value '%s' for '%s'(RR (Rt get_optionRRt ValueErrorRRR;(R#toptnameRAR,t long_optnameR((s>/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pyR<s   (t__name__t __module__t descriptionRRRR=t getParserRRt user_optionsR&R'R3R<(((s>/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pyRYs     /N(t__doc__t setuptoolsRt ImportErrorRRt nose.configRRRRRt nose.coreRt nose.pluginsRR(((s>/opt/alt/python27/lib/python2.7/site-packages/nose/commands.pyt=s (