
    ,h*                     n    d dl mZ d dlmZmZmZmZ d dlmZm	Z	 d dl
mZ  G d dej                        Zy)    )unicode_literals)	text_typebinary_typeint2byteunichr)decodeencode)unittestc            
       X    e Zd Zddgddgddgddgd	d
gddgddgddgddgg	Zd Zd Zd Zy)IMAP4UTF7TestCaseFoos   FoozFoo Bars   Foo BarzStuff & Thingss   Stuff &- ThingszHello worlds   Hello worldzHello & worlds   Hello &- worldu   Helloÿworlds   Hello&AP8-worldu   ÿþýüs   &AP8A,gD9APw-u   ~peter/mail/日本語/台北s   ~peter/mail/&ZeVnLIqe-/&U,BTFw-z foos   &AAA-fooc                     | j                   D ]8  \  }}t        |      }| j                  |t               | j	                  ||       : y N)testsr	   assertIsInstancer   assertEqual)selfinputoutputencodeds       `/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/imapclient/test/test_imap_utf7.pytest_encodezIMAP4UTF7TestCase.test_encode   sB    #zz 	.OUFUmG!!';7Wf-	.    c                     | j                   D ]8  \  }}t        |      }| j                  |t               | j	                  ||       : y r   )r   r   r   r   r   )r   r   r   decodeds       r   test_decodezIMAP4UTF7TestCase.test_decode!   sB    #zz 	-OUFVnG!!'95UG,	-r   c           	         t        t        dd            t        t        dd            z   D ]\  }| j                  t        |      t	        t        |                   | j                  t        |      t        t        |                   ^ | j                  t	        d      d       | j                  t	        d      d       | j                  t        d      d       y)z
        The IMAP4 modified UTF-7 implementation encodes all printable
        characters which are in ASCII using the corresponding ASCII byte.
            &   '      &s   &-N)listranger   r   r	   r   r   )r   os     r   test_printable_singletonsz+IMAP4UTF7TestCase.test_printable_singletons'   s     eD$'(4dD0A+BB 	=AXa[&*;<VAYx{(;<	= 	e,e,,r   N)__name__
__module____qualname__r   r   r   r&    r   r   r   r      sf    		J	-.	'	+,	-.	-.	6	+	-	K E.--r   r   N)
__future__r   sixr   r   r   r   imapclient.imap_utf7r   r	   imapclient.test.utilr
   TestCaser   r*   r   r   <module>r0      s(   
 ( 8 8 / )%-)) %-r   