
    d                     j    d Z ddlmZ ddlmZ ddlmZmZ  G d de          Z G d d	e          Z	d
S )zTests for dulwich.mailmap.    )BytesIO)TestCase   )Mailmapread_mailmapc                       e Zd Zd ZdS )ReadMailmapTestsc                     t          d          }|                     g dt          t          |                               d S )Ns|  Jane Doe         <jane@desktop.(none)>
Joe R. Developer <joe@example.com>
# A comment
<cto@company.xx>                       <cto@coompany.xx> # Comment
Some Dude <some@dude.xx>         nick1 <bugs@company.xx>
Other Author <other@author.xx>   nick2 <bugs@company.xx>
Other Author <other@author.xx>         <nick2@company.xx>
Santa Claus <santa.claus@northpole.xx> <me@company.xx>
))s   Jane Does   jane@desktop.(none)N)s   Joe R. Developers   joe@example.comN)Ns   cto@company.xxNs   cto@coompany.xx)s	   Some Dudes   some@dude.xxs   nick1   bugs@company.xx)s   Other Authors   other@author.xxs   nick2r   )r   Ns   nick2@company.xx)s   Santa Clauss   santa.claus@northpole.xxNs   me@company.xx)r   assertEquallistr   )selfbs     ^/home/feoh/.local/pipx/venvs/poetry/lib/python3.11/site-packages/dulwich/tests/test_mailmap.py	test_readzReadMailmapTests.test_read   s\    	
 
 	  * a!!-	
 	
 	
 	
 	
    N)__name__
__module____qualname__r    r   r   r	   r	      s#        $
 $
 $
 $
 $
r   r	   c                       e Zd Zd ZdS )MailmapTestsc                    t                      }|                    dd           |                    dd            |                    dd           |                    dd           |                    dd	           |                    dd
           |                    dd           |                     d|                    d                     |                     d|                    d                     |                     d|                    d                     |                     d|                    d                     |                     d|                    d                     d S )Nr   )NNr   r   r   r   r   r   r   r   r   r   s   Jane Doe <jane@desktop.(none)>s   Jane Doe <jane@example.com>s   Jane D. <jane@desktop.(none)>s   Some Dude <some@dude.xx>s   nick1 <bugs@company.xx>s   CTO <cto@company.xx>s   CTO <cto@coompany.xx>)r   	add_entryr   lookup)r   ms     r   test_lookupzMailmapTests.test_lookupF   s   II	9<HHH	=tDDD	-/IJJJ	35STTT	1*	
 	
 	
 	
9;VWWW	9$	
 	
 	
 	-HH677	
 	
 	
 	-HH344	
 	
 	
 	-HH566	
 	
 	
 	'2L)M)M	
 	
 	
 	0!((;S2T2TUUUUUr   N)r   r   r    r(   r!   r   r   r#   r#   E   s(        V V V V Vr   r#   N)
__doc__ior   unittestr   mailmapr   r   r	   r#   r!   r   r   <module>r-      s   * !               + + + + + + + +%
 %
 %
 %
 %
x %
 %
 %
PV V V V V8 V V V V Vr   