+
    Df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 1T 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 6d 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78H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&(@+"
 'vv60v.r   c                   < V ^8  d   QhRR/# r
   r   )r   r   s   "r   r   r>   H   s     	6 	6d 	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   