+
    ÖÇÜh€	  ã                   ó‚   € R t ^ RIt^ RIt]P                  ! R4       ^ RIHt ]P                  R 4       t ! R R4      tR# )z+
Tests for static parts of Twitter package
NÚtwython©ÚAuthenticatec                  ó   € \        4       # )Nr   © ó    ÚB/usr/lib/python3/dist-packages/nltk/test/unit/test_twitter_auth.pyÚauthr	      s
   € ä‹>Ðr   c                   ó°   a € ] tR t^t o Rt]R 4       tR t]P                  P                  RRR/RR/RR// R	R
/R	R/R	R/R	R/.4      R 4       tR tRtV tR# )ÚTestCredentialszC
Tests that Twitter credentials from a file are handled correctly.
c                ó¸   € \         P                  P                  \         P                  P                  \        4      R 4      V n        R\         P                  R&   R# )Úfilesztwitter-filesÚTWITTERN)ÚosÚpathÚjoinÚdirnameÚ__file__ÚsubdirÚenviron)Úselfs   &r   Úsetup_classÚTestCredentials.setup_class   s3   € ä—g‘g—l‘l¤2§7¡7§?¡?´8Ó#<¸gÓFˆŒØ /Œ�
‰
�9Ór   c                ó”   € \         P                  P                  VP                  4      pV\         P                  R,          8X  g   Q hR# )z9
Test that environment variable has been read correctly.
r   N)r   r   ÚbasenameÚcreds_subdirr   )r   r	   Úfns   && r   Útest_environmentÚ TestCredentials.test_environment   s5   € ô �W‰W×Ñ˜d×/Ñ/Ó0ˆØ”R—Z‘Z 	Õ*Ô*Ð*Ò*r   Úkwargsr   Ú Nz
/nosuchdirÚ
creds_fileÚfoobarzbad_oauth1-1.txtzbad_oauth1-2.txtzbad_oauth1-3.txtc                óê   €  VP                   ! R/ VB  \        P                  ! R4       R#   \        \        3 d     R# \
         d)   p\        P                  ! RT,          4        Rp?R# Rp?ii ; i)z*Various scenarios that should raise errorszOSError exception not thrown.zUnexpected exception thrown: %sNr   )Ú
load_credsÚpytestÚfailÚOSErrorÚ
ValueErrorÚ	Exception)r   r   r	   Úes   &&& r   Ú'test_scenarios_that_should_raise_errorsÚ7TestCredentials.test_scenarios_that_should_raise_errors$   s\   € ð0		9Ø�OŠOÑ%˜fÒ%ô �KŠKÐ7Ö8øô œÐ$ô 	ÚÜô 	?Ü�KŠKÐ9¸AÕ=×>Ò>ûð	?ús!   ‚, ¬A2Á A2Á	A2Á
A-Á-A2c                ó  € VP                  V P                  R7      pVP                  \        P                  P                  V P                  VP                  4      8X  g   Q hVP                  R8X  g   Q hVR,          R8X  g   Q hR# )z6Test that a proper file succeeds and is read correctly©r   zcredentials.txtÚapp_keyÚaN)r$   r   Úcreds_fullpathr   r   r   r!   )r   r	   Úoauths   && r   Útest_correct_fileÚ!TestCredentials.test_correct_fileG   sg   € à—‘ t§{¡{�Ó3ˆà×"Ñ"¤b§g¡g§l¡l°4·;±;ÀÇÁÓ&PÔPÐPÐPØ�‰Ð"3Ô3Ð3Ð3Ø�YÕ 3Ô&Ð&Ò&r   r.   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úclassmethodr   r   r%   ÚmarkÚparametrizer+   r3   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s—   ø‡ € ñð ñ0ó ð0ò+ð ‡[�[×ÑØð �rˆNà�tÐà�|Ð$àà˜8Ð$àÐ-Ð.àÐ-Ð.àÐ-Ð.ð#	
óñ,9ó-ð,9÷'ð 'r   r   )	r9   r   r%   ÚimportorskipÚnltk.twitterr   Úfixturer	   r   r   r   r   Ú<module>rC      sE   ðñó 
ã à × Ò �IÔ å %ð ‡�ñó ð÷:'ó :'r   