+
    üÐjÛ  ã                   ób   € R t ^ RIHtHtHt ^ RIHt ^ RIHt  ! R R]4      t	 ! R R]4      t
R# )	z<
Tests for basic constructs of L{twisted.cred.credentials}.
)ÚIUsernameHashedPasswordÚIUsernamePasswordÚUsernamePassword)Ú_uhpVersion)ÚTestCasec                   ól   a € ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 ltR
t	V t
R# )ÚUsernamePasswordTestsz 
Tests for L{UsernamePassword}.
c                ó   <€ V ^8„  d   QhRR/# ©é   ÚreturnN© )ÚformatÚ__classdict__s   "€ÚC/usr/lib/python3/dist-packages/twisted/cred/test/test_simpleauth.pyÚ__annotate__Ú"UsernamePasswordTests.__annotate__   s   ø€ ÷ 1ñ 1 Tñ 1ó    c                óŽ   € \        RR4      pV P                  VP                  R4       V P                  VP                  R4       R# )zW
The initialisation of L{UsernamePassword} will set C{username} and
C{password} on it.
ó   fooó   barN)r   ÚassertEqualÚusernameÚpassword©ÚselfÚcredss   & r   Útest_initialisationÚ)UsernamePasswordTests.test_initialisation   s8   € ô
 ! ¨Ó0ˆØ×Ñ˜Ÿ™¨Ô0Ø×Ñ˜Ÿ™¨Ö0r   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r       s   ø€ ÷ 6ñ 6 dñ 6r   c                ó^   € \        RR4      pV P                  VP                  R4      4       R# )z~
Calling C{checkPassword} on a L{UsernamePassword} will return L{True}
when the password given is the password on the object.
ó   useró   passN)r   Ú
assertTrueÚcheckPasswordr   s   & r   Útest_correctPasswordÚ*UsernamePasswordTests.test_correctPassword    s'   € ô
 ! ¨'Ó2ˆØ�‰˜×+Ñ+¨GÓ4Ö5r   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r   (   s   ø€ ÷ @ñ @ Dñ @r   c                ó^   € \        RR4      pV P                  VP                  R4      4       R# )zƒ
Calling C{checkPassword} on a L{UsernamePassword} will return L{False}
when the password given is NOT the password on the object.
r!   r"   ó   someotherpassN)r   ÚassertFalser$   r   s   & r   Útest_wrongPasswordÚ(UsernamePasswordTests.test_wrongPassword(   s*   € ô
 ! ¨'Ó2ˆØ×Ñ˜×,Ñ,Ð-=Ó>Ö?r   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r   0   s   ø€ ÷ Kñ K ñ Kr   c                óX   € V P                  \        P                  ! \        4      4       R# )z6
L{UsernamePassword} implements L{IUsernamePassword}.
N)r#   r   ÚimplementedByr   )r   s   &r   Útest_interfaceÚ$UsernamePasswordTests.test_interface0   s   € ð 	�‰Ô)×7Ò7Ô8HÓIÖJr   r   N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r%   r+   r0   Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      s6   ø‡ € ñ÷1ð 1÷6ð 6÷@ð @÷Kö Kr   r   c                   ól   a € ] tR t^7t o RtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 ltR
t	V t
R# )ÚUsernameHashedPasswordTestsz&
Tests for L{UsernameHashedPassword}.
c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   Ú(UsernameHashedPasswordTests.__annotate__<   s   ø€ ÷ 
/ñ 
/ Tñ 
/r   c                ó¶   € V P                  RR\        4      pV! RR4      pV P                  VP                  R4       V P                  VP                  R4       R# )z[
The initialisation of L{UsernameHashedPassword} will set C{username}
and C{hashed} on it.
útwisted.cred.credentialsÚUsernameHashedPasswordr   r   N)ÚgetDeprecatedModuleAttributer   r   r   Úhashed©r   rA   r   s   &  r   r   Ú/UsernameHashedPasswordTests.test_initialisation<   sS   € ð
 "&×!BÑ!BØ&Ð(@Ä+ó"
Ðñ ' v¨vÓ6ˆØ×Ñ˜Ÿ™¨Ô0Ø×Ñ˜Ÿ™ vÖ.r   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r>   H   s   ø€ ÷ 	6ñ 	6 dñ 	6r   c                ó†   € V P                  RR\        4      pV! RR4      pV P                  VP                  R4      4       R# )z„
Calling C{checkPassword} on a L{UsernameHashedPassword} will return
L{True} when the password given is the password on the object.
r@   rA   r!   r"   N)rB   r   r#   r$   rD   s   &  r   r%   Ú0UsernameHashedPasswordTests.test_correctPasswordH   sB   € ð
 "&×!BÑ!BØ&Ð(@Ä+ó"
Ðñ ' w°Ó8ˆØ�‰˜×+Ñ+¨GÓ4Ö5r   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r>   S   s   ø€ ÷ 	@ñ 	@ Dñ 	@r   c                ó†   € V P                  RR\        4      pV! RR4      pV P                  VP                  R4      4       R# )z‰
Calling C{checkPassword} on a L{UsernameHashedPassword} will return
L{False} when the password given is NOT the password on the object.
r@   rA   r!   r"   r)   N)rB   r   r*   r$   rD   s   &  r   r+   Ú.UsernameHashedPasswordTests.test_wrongPasswordS   sE   € ð
 "&×!BÑ!BØ&Ð(@Ä+ó"
Ðñ ' w°Ó8ˆØ×Ñ˜×,Ñ,Ð-=Ó>Ö?r   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r>   ^   s   ø€ ÷ Wñ W ñ Wr   c                ó~   € V P                  RR\        4      pV P                  \        P                  ! V4      4       R# )zB
L{UsernameHashedPassword} implements L{IUsernameHashedPassword}.
r@   rA   N)rB   r   r#   r   r/   )r   rA   s   & r   r0   Ú*UsernameHashedPasswordTests.test_interface^   s8   € ð "&×!BÑ!BØ&Ð(@Ä+ó"
Ðð 	�‰Ô/×=Ò=Ð>TÓUÖVr   r   Nr2   r:   s   @r   r<   r<   7   s6   ø‡ € ñ÷
/ð 
/÷	6ð 	6÷	@ð 	@÷Wö Wr   r<   N)r7   Útwisted.cred.credentialsr   r   r   Útwisted.cred.test.test_credr   Útwisted.trial.unittestr   r   r<   r   r   r   Ú<module>rR      s9   ðñ÷
ñ õ
 4Ý +ô"K˜Hô "KôJ.W (ö .Wr   