ó
‹wÛjc           @   sÝ  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l m Z d  d l Z d  d l Z d  d l Z y d  d l Z Wn e k
 rÛ n Xe j d d e ƒZ d f  d „  ƒ  YZ d e f d „  ƒ  YZ d	 e e j f d
 „  ƒ  YZ d e e j f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e e j f d „  ƒ  YZ d e e j f d „  ƒ  YZ d e e j f d „  ƒ  YZ d e e j f d „  ƒ  YZ d e e j f d „  ƒ  YZ  d e  e j f d „  ƒ  YZ! d f  d „  ƒ  YZ" d e" e  f d  „  ƒ  YZ# d! e  e j f d" „  ƒ  YZ$ d# e  e j f d$ „  ƒ  YZ% d% e" e  f d& „  ƒ  YZ& d' e e j f d( „  ƒ  YZ' d) e f d* „  ƒ  YZ( d+ e( e j f d, „  ƒ  YZ) d- e( e j f d. „  ƒ  YZ* d/ Z+ d0 Z, d1 e j f d2 „  ƒ  YZ- d3 Z. i d4 d5 6d6 d7 6d6 d8 6d9 d: 6d; d8 6d< d: 6d= d: 6d> d: 6d? d@ 6dA dB 6dC dD 6dE dF 6dG dH 6dI dJ 6dK dL 6dM dN 6Z/ dO dP f Z0 dQ „  Z1 e2 dR k rÙe1 ƒ  n  d S(S   iÿÿÿÿN(   t   test_supportt   rfc822t
   deprecatedt   TestBasec           B   s   e  Z d  „  Z d „  Z RS(   c         C   s  |  j  | t j j ƒ |  j  | t j ƒ x3 t j ƒ  D]% \ } } |  j | | j | ƒ ƒ q6 W|  j	 | j
 ƒ  ƒ |  j t | j ƒ  ƒ t t ƒ ƒ xh t t ƒ D]Z \ } } | j | ƒ } |  j  | t j j ƒ |  j | t j ƒ |  j | j ƒ  | ƒ q¡ Wd  S(   N(   t   assertIsInstancet   emailt   messaget   Messaget   mailboxt   _sample_headerst	   iteritemst   assertInt   get_allt
   assertTruet   is_multipartt   assertEqualt   lent   get_payloadt   _sample_payloadst	   enumeratet   assertNotIsInstance(   t   selft   msgt   keyt   valuet   it   payloadt   part(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _check_sample   s    "c         C   sH   t  j j | ƒ r" t j | ƒ n" t  j j | ƒ rD t j | ƒ n  d  S(   N(   t   ost   patht   isdirR    t   rmtreet   existst   unlink(   R   t   target(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _delete_recursively(   s    (   t   __name__t
   __module__R   R$   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR      s   	t   TestMailboxc           B   s‚  e  Z d) Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d	 d
 „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d	 d „ Z d „  Z d „  Z d „  Z d	 d „ Z d „  Z  d	 d „ Z! d „  Z" d	 d  „ Z# d! „  Z$ d" „  Z% d# „  Z& d$ „  Z' d% „  Z( d& „  Z) d' „  Z* d( „  Z+ RS(*   s   From: foo

%s
c         C   s5   t  j |  _ |  j |  j ƒ |  j |  j ƒ |  _ d  S(   N(   R    t   TESTFNt   _pathR$   t   _factoryt   _box(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   setUp5   s    c         C   s!   |  j  j ƒ  |  j |  j ƒ d  S(   N(   R+   t   closeR$   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   tearDown:   s    c         C   sv  g  } | j  |  j j |  j d ƒ ƒ |  j t |  j ƒ d ƒ | j  |  j j t j t ƒ ƒ ƒ |  j t |  j ƒ d ƒ | j  |  j j t	 j
 t ƒ ƒ ƒ |  j t |  j ƒ d ƒ | j  |  j j t j t ƒ ƒ ƒ |  j t |  j ƒ d ƒ | j  |  j j t ƒ ƒ |  j t |  j ƒ d ƒ |  j |  j j | d ƒ |  j d ƒ x& d D] } |  j |  j | | ƒ qPWd  S(   Ni    i   i   i   i   i   (   i   i   i   i   (   t   appendR+   t   addt	   _templateR   R   R   R   t   _sample_messageR   t   message_from_stringt   StringIOt
   get_stringR   (   R   t   keysR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add>   s     """'c         C   sv   t  j d ƒ �3 } | j t ƒ | j d ƒ |  j j | ƒ } Wd  QX|  j |  j j | ƒ j	 d ƒ t j	 d ƒ ƒ d  S(   Ns   w+i    s   
(
   t   tempfilet   TemporaryFilet   writeR2   t   seekR+   R0   R   R5   t   split(   R   t   fR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_fileO   s    c         C   sI   |  j  j t j |  j d ƒ ƒ } |  j |  j  j | ƒ |  j d ƒ d  S(   Nt   0(   R+   R0   R4   R1   R   R5   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_StringIOW   s    "c         C   s   |  j  |  j j ƒ d  S(   N(   t   _test_remove_or_delitemR+   t   remove(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_remove[   s    c         C   s   |  j  |  j j ƒ d  S(   N(   RA   R+   t   __delitem__(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_delitem_   s    c            sä  ˆ j  j ˆ j d ƒ ‰  ˆ j  j ˆ j d ƒ ‰ ˆ j t ˆ j  ƒ d ƒ ˆ ˆ  ƒ t ˆ j  ƒ } ˆ j | d ƒ ˆ j t ‡  ‡ f d †  ƒ ˆ j t ‡  ‡ f d †  ƒ ˆ j ˆ j  j ˆ ƒ ˆ j d ƒ ˆ j  j ˆ j d ƒ ‰ ˆ j t ˆ j  ƒ d ƒ ˆ ˆ ƒ t ˆ j  ƒ } ˆ j | d ƒ ˆ j t ‡ ‡ f d †  ƒ ˆ j t ‡ ‡ f d †  ƒ ˆ j ˆ j  j ˆ ƒ ˆ j d ƒ ˆ ˆ ƒ ˆ j t ˆ j  ƒ d ƒ ˆ j t ‡ ‡ f d †  ƒ ˆ j t ‡ ‡ f d	 †  ƒ d  S(
   Ni    i   i   c              s   ˆ j  ˆ  S(   N(   R+   (    (   t   key0R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   <lambda>k   t    c              s
   ˆ ˆ  ƒ S(   N(    (    (   RF   t   method(    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   l   RH   c              s   ˆ j  ˆ  S(   N(   R+   (    (   t   key2R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   s   RH   c              s
   ˆ ˆ  ƒ S(   N(    (    (   RJ   RI   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   t   RH   c              s   ˆ j  ˆ  S(   N(   R+   (    (   t   key1R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   x   RH   c              s
   ˆ ˆ  ƒ S(   N(    (    (   RK   RI   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   y   RH   (   R+   R0   R1   R   R   t   assertRaisest   KeyErrorR5   (   R   RI   t   l(    (   RF   RK   RJ   RI   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRA   c   s*    
#
#
i
   c            sÙ   ˆ j  j ˆ j d ƒ ‰  ˆ j  j ˆ j d ƒ } ˆ j t ˆ j  ƒ d ƒ ˆ j  j ˆ  ƒ ˆ j t ˆ j  ƒ d ƒ ˆ j t ‡  ‡ f d †  ƒ ˆ j  j ˆ  ƒ ˆ j t ˆ j  ƒ d ƒ ˆ j t ‡  ‡ f d †  ƒ d  S(   Ni    i   i   c              s   ˆ j  ˆ  S(   N(   R+   (    (   RF   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ‚   RH   c              s   ˆ j  ˆ  S(   N(   R+   (    (   RF   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   …   RH   (   R+   R0   R1   R   R   t   discardRL   RM   (   R   t   repetitionsRK   (    (   RF   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_discard{   s    c         C   s%  |  j  j |  j d ƒ } |  j  j | ƒ } |  j | d d ƒ |  j | j ƒ  d ƒ |  j |  j  j d ƒ ƒ |  j |  j  j d t ƒ ƒ |  j  j	 ƒ  |  j
 |  j d t j ƒ|  _  |  j  j |  j d ƒ } |  j  j | ƒ } |  j | d d ƒ |  j | j j ƒ  d t j ƒ | j j	 ƒ  d  S(   Ni    t   fromt   foos   0
t   factoryi   t   1(   R+   R0   R1   t   getR   R   t   assertIsNonet   assertFalset   FalseR-   R*   R)   R   R   t   fpt   readR   t   linesep(   R   RF   R   RK   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_get‡   s     c            s™   ˆ j  j ˆ j d ƒ ‰  ˆ j  ˆ  } ˆ j | d d ƒ ˆ j | j ƒ  d ƒ ˆ j t ‡ f d †  ƒ ˆ j  j ˆ  ƒ ˆ j t ‡  ‡ f d †  ƒ d  S(   Ni    RR   RS   s   0
c              s   ˆ  j  d S(   NRS   (   R+   (    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   �   RH   c              s   ˆ j  ˆ  S(   N(   R+   (    (   RF   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ÿ   RH   (   R+   R0   R1   R   R   RL   RM   RO   (   R   R   (    (   RF   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_getitem—   s    c         C   s—   |  j  j |  j d ƒ } |  j  j t ƒ } |  j  j | ƒ } |  j | t j ƒ |  j | d d ƒ |  j | j	 ƒ  d ƒ |  j
 |  j  j | ƒ ƒ d  S(   Ni    RR   RS   s   0
(   R+   R0   R1   R2   t   get_messageR   R   R   R   R   R   (   R   RF   RK   t   msg0(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_get_message¡   s    c         C   sn   |  j  j |  j d ƒ } |  j  j t ƒ } |  j |  j  j | ƒ |  j d ƒ |  j |  j  j | ƒ t ƒ d  S(   Ni    (   R+   R0   R1   R2   R   R5   (   R   RF   RK   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_get_string«   s    #c         C   s¸   |  j  j |  j d ƒ } |  j  j t ƒ } |  j  j | ƒ } |  j | j ƒ  j t j	 d ƒ |  j d ƒ |  j  j | ƒ } |  j | j ƒ  j t j	 d ƒ t ƒ | j
 ƒ  | j
 ƒ  d  S(   Ni    s   
(   R+   R0   R1   R2   t   get_fileR   R[   t   replaceR   R\   R-   (   R   RF   RK   R`   t   msg1(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_get_file²   s    
c         C   s<   |  j  j t ƒ } |  j  j | ƒ } | j ƒ  | j ƒ  d  S(   N(   R+   R0   R2   Rc   R-   (   R   R   R=   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt!   test_get_file_can_be_closed_twice¿   s    
c         C   s#   |  j  |  j j d t d t ƒd  S(   Nt   do_keyst	   do_values(   t   _check_iterationR+   t   iterkeyst   TrueRY   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_iterkeysÆ   s    c         C   s#   |  j  |  j j d t d t ƒd  S(   NRh   Ri   (   Rj   R+   R6   Rl   RY   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_keysÊ   s    c         C   s#   |  j  |  j j d t d t ƒd  S(   NRh   Ri   (   Rj   R+   t
   itervaluesRY   Rl   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_itervaluesÎ   s    c         C   s#   |  j  |  j j d t d t ƒd  S(   NRh   Ri   (   Rj   R+   t   __iter__RY   Rl   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_iterÓ   s    c         C   s#   |  j  |  j j d t d t ƒd  S(   NRh   Ri   (   Rj   R+   t   valuesRY   Rl   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_valuesØ   s    c         C   s#   |  j  |  j j d t d t ƒd  S(   NRh   Ri   (   Rj   R+   R
   Rl   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_iteritemsÜ   s    c         C   s#   |  j  |  j j d t d t ƒd  S(   NRh   Ri   (   Rj   R+   t   itemsRl   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   test_itemsá   s    c         C   s­  x | ƒ  D] } |  j  d ƒ q
 Wg  g  } } xH t | ƒ D]: } | j |  j j |  j | ƒ ƒ | j |  j | ƒ q; W| r˜ | r˜ t | ƒ  ƒ }	 n` | r· | r· t | ƒ  ƒ }
 nA g  g  }	 }
 x1 | ƒ  D]& \ } } |	 j | ƒ |
 j | ƒ qÎ W| r9|  j t | ƒ t |	 ƒ ƒ |  j t	 | ƒ t	 |	 ƒ ƒ n  | r©d } xH |
 D]@ } |  j | d d ƒ |  j
 t | j ƒ  ƒ | ƒ | d 7} qLW|  j t | ƒ | ƒ n  d  S(   Ns	   Not emptyi    RR   RS   i   (   t   failt   xrangeR/   R+   R0   R1   t   listR   R   t   sett
   assertLesst   intR   (   R   RI   Rh   Ri   RP   R   R6   Rs   R   t   returned_keyst   returned_valuesR   t   count(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRj   å   s0     c         C   s   |  j  |  j j ƒ d  S(   N(   t   _test_has_key_or_containsR+   t   has_key(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_has_key   s    c         C   s   |  j  |  j j ƒ d  S(   N(   R�   R+   t   __contains__(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_contains  s    c         C   s:  |  j  | d ƒ ƒ |  j j |  j d ƒ } |  j | | ƒ ƒ |  j  | d ƒ ƒ |  j j |  j d ƒ } |  j | | ƒ ƒ |  j | | ƒ ƒ |  j  | d ƒ ƒ |  j j | ƒ |  j  | | ƒ ƒ |  j | | ƒ ƒ |  j  | d ƒ ƒ |  j j | ƒ |  j  | | ƒ ƒ |  j  | | ƒ ƒ |  j  | d ƒ ƒ d  S(   NRS   i    i   (   RX   R+   R0   R1   R   RB   (   R   RI   RF   RK   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR�     s     c         C   sà   g  } xj t  | ƒ D]\ } |  j t |  j ƒ | ƒ | j |  j j |  j | ƒ ƒ |  j t |  j ƒ | d ƒ q Wxf t  | ƒ D]X } |  j t |  j ƒ | | ƒ |  j j | | ƒ |  j t |  j ƒ | | d ƒ q€ Wd  S(   Ni   (   Ry   R   R   R+   R/   R0   R1   RB   (   R   RP   R6   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_len  s     !c            sÉ  ˆ  j  j ˆ  j d ƒ } ˆ  j ˆ  j  j | ƒ ˆ  j d ƒ ˆ  j  j ˆ  j d ƒ } ˆ  j ˆ  j  j | ƒ ˆ  j d ƒ ˆ  j d ˆ  j  | <ˆ  j ˆ  j  j | ƒ ˆ  j d ƒ ˆ  j d ˆ  j  | <ˆ  j ˆ  j  j | ƒ ˆ  j d ƒ t ˆ  j  | <ˆ  j ˆ  j  | ƒ ˆ  j  | ˆ  j  | <ˆ  j ˆ  j  | ƒ ˆ  j d ˆ  j  | <ˆ  j ˆ  j  j | ƒ ˆ  j d ƒ ˆ  j ˆ  j  | ƒ ˆ  j t ‡  f d †  ƒ ˆ  j t ‡  f d †  ƒ ˆ  j t	 ˆ  j  ƒ d ƒ d  S(   Ns
   original 0s
   original 1s	   changed 0s	   changed 1c              s   ˆ  j  j d d ƒ S(   NRS   t   bar(   R+   t   __setitem__(    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   >  RH   c              s   ˆ  j  d S(   NRS   (   R+   (    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ?  RH   i   (
   R+   R0   R1   R   R5   R2   R   RL   RM   R   (   R   RF   RK   (    (   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_set_item'  s0    	c            s×   g  } x+ t  | ƒ D] } ˆ j j ˆ j | ƒ q Wx= t | ƒ D]/ \ } ‰  ˆ j ˆ j j ˆ  ƒ ˆ j | ƒ qA Wˆ j j ƒ  ˆ j t ˆ j ƒ d ƒ x6 t | ƒ D]( \ } ‰  ˆ j	 t
 ‡  ‡ f d †  ƒ q§ Wd  S(   Ni    c              s   ˆ j  j ˆ  ƒ S(   N(   R+   R5   (    (   R   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   L  RH   (   Ry   R+   R0   R1   R   R   R5   t   clearR   RL   RM   (   R   t
   iterationsR6   R   (    (   R   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   test_clearB  s    'c         C   sf  |  j  j |  j d ƒ } |  j | |  j  ƒ |  j  j |  j d ƒ } |  j | |  j  ƒ |  j |  j  j | ƒ j ƒ  d ƒ |  j | |  j  ƒ |  j | |  j  ƒ |  j  j |  j d ƒ } |  j | |  j  ƒ |  j |  j  j | ƒ j ƒ  d ƒ |  j | |  j  ƒ |  j | |  j  ƒ |  j |  j  j | ƒ j ƒ  d ƒ |  j | |  j  ƒ |  j t |  j  ƒ d ƒ d  S(   Ni    i   s   0
i   s   2
s   1
(	   R+   R0   R1   R   R   t   popR   t   assertNotInR   (   R   RF   RK   RJ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_popN  s    """c            s  g  } x4 t  d ƒ D]& } | j ˆ j j ˆ j | ƒ ƒ q Wg  } x{ t  d ƒ D]m } ˆ j j ƒ  \ ‰  } ˆ j ˆ  | ƒ ˆ j ˆ  | ƒ | j ˆ  ƒ ˆ j t	 | j
 ƒ  ƒ | j ˆ  ƒ ƒ qP Wˆ j t ˆ j ƒ d ƒ x* | D]" ‰  ˆ j t ‡  ‡ f d †  ƒ qá Wd  S(   Ni
   i    c              s   ˆ j  ˆ  S(   N(   R+   (    (   R   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   n  RH   (   Ry   R/   R+   R0   R1   t   popitemR   RŽ   R   R}   R   t   indexR   RL   RM   (   R   R‹   R6   R   t   seenR   (    (   R   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_popitem`  s    $)c            sG  ˆ j  j ˆ j d ƒ ‰  ˆ j  j ˆ j d ƒ } ˆ j  j ˆ j d ƒ } ˆ j  j i ˆ j d ˆ  6t | 6ƒ ˆ j t ˆ j  ƒ d ƒ ˆ j ˆ j  j ˆ  ƒ ˆ j d ƒ ˆ j ˆ j  j | ƒ ˆ j d ƒ ˆ j ˆ j  | ƒ ˆ j  j | ˆ j d f | ˆ j d f ˆ  ˆ j d f g ƒ ˆ j t ˆ j  ƒ d ƒ ˆ j ˆ j  j ˆ  ƒ ˆ j d ƒ ˆ j ˆ j  j | ƒ ˆ j d ƒ ˆ j ˆ j  j | ƒ ˆ j d ƒ ˆ j	 t
 ‡  ‡ f d †  ƒ ˆ j t ˆ j  ƒ d ƒ ˆ j ˆ j  j ˆ  ƒ ˆ j d ƒ ˆ j ˆ j  j | ƒ ˆ j d ƒ ˆ j ˆ j  j | ƒ ˆ j d ƒ d  S(	   Ns
   original 0s
   original 1s
   original 2s	   changed 0i   s	   changed 2s	   changed 1c              s%   ˆ j  j i d d 6ˆ j d ˆ  6ƒ S(   NR‡   RS   s	   changed 0(   R+   t   updateR1   (    (   RF   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ˆ  s   (   R+   R0   R1   R”   R2   R   R   R5   R   RL   RM   (   R   RK   RJ   (    (   RF   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_updatep  s<    	c         C   s   |  j  |  j j t ƒ d  S(   N(   t   _test_flush_or_closeR+   t   flushRl   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   test_flush’  s    c         C   ss   |  j  j |  j d ƒ |  j  j |  j d ƒ |  j  j ƒ  |  j  j ƒ  |  j  j ƒ  |  j  j ƒ  |  j  j ƒ  d  S(   Ni    i   (   R+   R0   R1   R—   R�   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_popitem_and_flush_twice–  s    c         C   s{   |  j  t j j |  j ƒ  ƒ ƒ |  j j ƒ  |  j t j j |  j ƒ  ƒ ƒ |  j j ƒ  |  j  t j j |  j ƒ  ƒ ƒ d  S(   N(	   RX   R   R   R!   t   _get_lock_pathR+   t   lockR   t   unlock(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_lock_unlock¡  s
    c         C   s   |  j  |  j j t ƒ d  S(   N(   R–   R+   R-   RY   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   test_close©  s    c         C   sý   g  t  d ƒ D] } |  j | ^ q } |  j j | d ƒ |  j j | d ƒ |  j j | d ƒ |  j } | ƒ  | rˆ |  j j ƒ  n  |  j |  j ƒ |  _ |  j j ƒ  } |  j t	 | ƒ d ƒ x* | D]" } |  j
 |  j j | ƒ | ƒ qÉ W| j ƒ  d  S(   Ni   i    i   i   (   Ry   R1   R+   R0   R-   R*   R)   R6   R   R   R   R5   (   R   RI   t   should_call_closeR   t   contentst   oldboxR6   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR–   ­  s    &	 c            sœ   xm t  j t ƒ t t j t ƒ f D]J } t j ƒ  ‰  ˆ j j | ˆ  ƒ ˆ j ˆ  j ƒ  t j d t	 j
 ƒ ƒ q" Wt j ƒ  ‰  ˆ j t ‡  ‡ f d †  ƒ d  S(   Ns   
c              s   ˆ j  j d  ˆ  ƒ S(   N(   R+   t   _dump_messaget   None(    (   t   outputR   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ç  RH   (   R   R3   R2   R4   R+   R¢   R   t   getvalueRd   R   R\   RL   t	   TypeError(   R   t   input(    (   R¤   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_dump_message½  s    	c         C   s   |  j  d S(   Ns   .lock(   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRš   É  s    N(,   R%   R&   R£   R*   R1   R,   R.   R7   R>   R@   RC   RE   RA   RQ   R]   R^   Ra   Rb   Rf   Rg   Rm   Rn   Rp   Rr   Rt   Ru   Rw   Rj   Rƒ   R…   R�   R†   R‰   RŒ   R�   R“   R•   R˜   R™   R�   Rž   R–   R¨   Rš   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR'   0   sR   										
	
																"						t   TestMailboxSuperclassc           B   s   e  Z d  „  Z RS(   c            sÏ  t  j d ƒ ‰  |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d	 †  ƒ |  j t ‡  f d
 †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ d  S(   NR   c              s   ˆ  j  d ƒ S(   NRH   (   R0   (    (   t   box(    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ó  RH   c              s   ˆ  j  d ƒ S(   NRH   (   RB   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ô  RH   c              s   ˆ  j  d ƒ S(   NRH   (   RD   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Õ  RH   c              s   ˆ  j  d ƒ S(   NRH   (   RO   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ö  RH   c              s   ˆ  j  d d ƒ S(   NRH   (   Rˆ   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ×  RH   c              s
   ˆ  j  ƒ  S(   N(   Rk   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ø  RH   c              s
   ˆ  j  ƒ  S(   N(   R6   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ù  RH   c              s   ˆ  j  ƒ  j ƒ  S(   N(   Ro   t   next(    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ú  RH   c              s   ˆ  j  ƒ  j ƒ  S(   N(   Rq   R«   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Û  RH   c              s
   ˆ  j  ƒ  S(   N(   Rs   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ü  RH   c              s   ˆ  j  ƒ  j ƒ  S(   N(   R
   R«   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ý  RH   c              s
   ˆ  j  ƒ  S(   N(   Rv   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Þ  RH   c              s   ˆ  j  d ƒ S(   NRH   (   RV   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ß  RH   c              s   ˆ  j  d ƒ S(   NRH   (   t   __getitem__(    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   à  RH   c              s   ˆ  j  d ƒ S(   NRH   (   R_   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   á  RH   c              s   ˆ  j  d ƒ S(   NRH   (   R5   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   â  RH   c              s   ˆ  j  d ƒ S(   NRH   (   Rc   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ã  RH   c              s   ˆ  j  d ƒ S(   NRH   (   R‚   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ä  RH   c              s   ˆ  j  d ƒ S(   NRH   (   R„   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   å  RH   c              s
   ˆ  j  ƒ  S(   N(   t   __len__(    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   æ  RH   c              s
   ˆ  j  ƒ  S(   N(   RŠ   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ç  RH   c              s   ˆ  j  d ƒ S(   NRH   (   R�   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   è  RH   c              s
   ˆ  j  ƒ  S(   N(   R�   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   é  RH   c              s   ˆ  j  d ƒ S(   NRH   (   RH   RH   (   (   RH   RH   (   R”   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ê  RH   c              s
   ˆ  j  ƒ  S(   N(   R—   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ë  RH   c              s
   ˆ  j  ƒ  S(   N(   R›   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ì  RH   c              s
   ˆ  j  ƒ  S(   N(   Rœ   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   í  RH   c              s
   ˆ  j  ƒ  S(   N(   R-   (    (   Rª   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   î  RH   (   R   t   MailboxRL   t   NotImplementedError(   R   (    (   Rª   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_notimplementedÐ  s:    (   R%   R&   R°   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR©   Î  s   t   TestMaildirc           B   sL  e  Z d d  „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d d „ Z d	 „  Z d
 „  Z d „  Z d „  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j e e d ƒ d ƒ e j e e d ƒ d ƒ d „  ƒ ƒ Z e j e e d ƒ d ƒ e j e e d ƒ d ƒ d „  ƒ ƒ Z d „  Z RS(   c         C   s   t  j | | ƒ S(   N(   R   t   Maildir(   R   R   RT   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ó  RH   c         C   s>   t  j |  ƒ t j d k s+ t j d k r: d |  j _ n  d  S(   Nt   ntt   os2t   cygwint   !(   R³   R´   (   R'   R,   R   t   namet   syst   platformR+   t   colon(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR,   õ  s    c         C   s„   t  j |  j d ƒ } | j d ƒ | j d ƒ |  j j | ƒ } |  j t j	 j
 t j	 j |  j d d | |  j j f ƒ ƒ ƒ d  S(   Ni    t   curRS   s   %s%sfoo(   R   t   MaildirMessageR1   t
   set_subdirt   set_infoR+   R0   R   R   R   R!   t   joinR)   Rº   (   R   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_MMú  s    $c         C   s—   t  j |  j d ƒ } | j d ƒ | j d ƒ |  j j | ƒ } |  j j | ƒ } |  j | t  j ƒ |  j	 | j
 ƒ  d ƒ |  j	 | j ƒ  d ƒ d  S(   Ni    R»   t   RFt   FR(   R   R¼   R1   R½   t	   set_flagsR+   R0   R_   R   R   t
   get_subdirt	   get_flags(   R   R   R   t   msg_returned(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_get_MM  s    c         C   s†  t  j |  j d ƒ } | j d ƒ |  j j | ƒ } |  j j | ƒ } |  j | j ƒ  d ƒ |  j | j	 ƒ  d ƒ t  j |  j d ƒ } | |  j | <|  j j | ƒ } |  j | j ƒ  d ƒ |  j | j	 ƒ  d ƒ |  j | j
 ƒ  d ƒ t  j |  j d ƒ } | j d	 ƒ | |  j | <|  j d
 |  j | <|  j j | ƒ } |  j | j ƒ  d ƒ |  j | j	 ƒ  d ƒ |  j | j
 ƒ  d ƒ d  S(   Ni    t   TPt   newt   PTi   RH   s   1
i   s   2,Si   t   Ss   3
(   R   R¼   R1   RÃ   R+   R0   R_   R   RÄ   RÅ   R   R¾   (   R   R`   R   RÆ   Re   t   msg2(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_set_MM  s(    c         C   s¥   t  j |  j d ƒ } | j d ƒ | j d ƒ |  j j | ƒ } d t  j f d „  ƒ  Y} t  j |  j d | ƒ} |  j j	 | _	 | j
 | ƒ } |  j | | ƒ d  S(   Ni    R»   RÁ   t   FakeMessagec           B   s   e  Z RS(    (   R%   R&   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRÎ   -  s   RT   (   R   R¼   R1   R½   RÃ   R+   R0   R²   R)   Rº   R_   R   (   R   R   R   RÎ   Rª   RÌ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_consistent_factory%  s    c         C   sk   |  j  ƒ  t j |  j ƒ |  _ |  j d t j ƒ |  j |  j ƒ |  j	 |  j d d  ƒ|  _ |  j ƒ  d  S(   NRT   (   R.   R   R²   R)   R+   t   _check_basicsR   R   R$   R*   R£   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_new4  s    
c         C   s—   |  j  ƒ  x9 d D]1 } t j t j j t j j |  j | ƒ ƒ ƒ q Wt j |  j ƒ |  _	 |  j
 d t j ƒ t j |  j d d  ƒ|  _	 |  j
 ƒ  d  S(   NRH   t   tmpRÉ   R»   RT   (   RH   RÒ   RÉ   R»   (   R.   R   t   mkdirR   t   normpathR¿   R)   R   R²   R+   RÐ   R   R   R£   (   R   t   subdir(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_existing=  s    
/c         C   s›   |  j  |  j j t j j |  j ƒ ƒ |  j  |  j j | ƒ xY d D]Q } t j j |  j | ƒ } t j | ƒ t j	 } |  j
 t j | ƒ d | ƒ qB Wd  S(   NRH   RÒ   RÉ   R»   s   Not a directory: '%s'(   RH   RÒ   RÉ   R»   (   R   R+   R)   R   R   t   abspathR*   R¿   t   statt   ST_MODER   t   S_ISDIR(   R   RT   RÕ   R   t   mode(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRÐ   G  s    %c         C   sx   |  j  j d ƒ |  j  j d ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d ƒ ƒ d  S(   Nt   onet   twot   threei   (   RÜ   RÝ   RÞ   (   R+   t
   add_folderR   R   t   list_foldersR{   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_list_foldersP  s    c         C   s¡   |  j  j d ƒ |  j  j d ƒ } | j |  j d ƒ |  j t j j t j j	 |  j
 d ƒ ƒ ƒ |  j  j d ƒ } |  j | j | j ƒ  d ƒ |  j d ƒ d  S(   Ns   foo.barR‡   s   .foo.bari    (   R+   Rß   t
   get_folderR0   R1   R   R   R   R   R¿   R)   R   R5   R6   (   R   t   folder0t   folder1(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_get_folderY  s    +c         C   s¬  |  j  j d ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d	 ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d
 ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j |  j  j ƒ  g  ƒ d  S(   NRÜ   RÝ   i   i   RÞ   i    (   RÜ   RÝ   (   RÝ   (   RÝ   RÞ   (   RÝ   (   R+   Rß   R   R   Rà   R{   t   remove_folder(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_and_remove_foldersc  s     %%%%c         C   s8  t  j j |  j d d ƒ } t  j j |  j d d ƒ } t | d ƒ � } | j d ƒ Wd  QXt | d ƒ � } | j d ƒ Wd  QX|  j j ƒ  |  j t  j j	 | ƒ ƒ |  j t  j j	 | ƒ ƒ t  j
 | ƒ } t  j | t j ƒ  d d | j f ƒ |  j j ƒ  |  j t  j j	 | ƒ ƒ |  j t  j j	 | ƒ ƒ d  S(   NRÒ   RS   R‡   t   wt   @i@ú i   (   R   R   R¿   R)   t   openR:   R+   t   cleanR   R!   RØ   t   utimet   timet   st_mtimeRX   (   R   t   foo_patht   bar_pathR=   t   foo_stat(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   test_cleanv  s    i
   c         C   sÍ  t  j ƒ  } d | k r- | j d d ƒ } n  d | k rN | j d d ƒ } n  t j ƒ  } t j d ƒ } d  } xt | ƒ D]} |  j	 j
 ƒ  } t j j | j ƒ \ } }	 |  j | t j j t j j |  j d ƒ ƒ d | ƒ | j |	 ƒ }
 |  j |
 d |	 ƒ |
 j ƒ  } | d  k	 rA|  j t | d	 ƒ t | d	 ƒ d
 | d	 | d	 f ƒ t | d	 ƒ t | d	 ƒ k r±|  j t | d ƒ t | d ƒ d | d | d f ƒ n  |  j t | d ƒ | d | d | f ƒ |  j t | d ƒ t | d ƒ d d | d | d f ƒ |  j | d | d | d | f ƒ n  | } | j t ƒ | j d	 ƒ |  j | j ƒ  t ƒ | j ƒ  q| Wt t j t j j |  j d ƒ ƒ ƒ } |  j | | d | | f ƒ d  S(   Nt   /s   \057t   :s   \072sF   (?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)Q(?P<Q>\d+)\.(?P<host>[^:/]*)RÒ   s   File in wrong location: '%s's   Invalid file name: '%s'i    s'   Non-monotonic seconds: '%s' before '%s'i   s,   Non-monotonic milliseconds: '%s' before '%s'i   s(   Process ID mismatch: '%s' should be '%s'i   s(   Non-sequential counter: '%s' before '%s'i   s'   Host name mismatch: '%s' should be '%s's%   Wrong file count: '%s' should be '%s'(   t   sockett   gethostnameRd   R   t   getpidt   ret   compileR£   Ry   R+   t   _create_tmpR   R<   R·   R   R×   R¿   R)   t   matcht   assertIsNotNonet   groupst   assertGreaterEqualR}   R:   R2   R;   R[   R-   R   t   listdir(   R   RP   t   hostnamet   pidt   patternt   previous_groupst   xt   tmp_filet   headt   tailRû   Rý   t
   file_count(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_create_tmpˆ  sV    !	   $'c         C   sq  |  j  |  j j i  ƒ |  j j |  j d ƒ } |  j j |  j d ƒ } |  j  |  j j i  ƒ |  j j ƒ  |  j  |  j j i t j j d | ƒ | 6t j j d | ƒ | 6ƒ |  j j |  j d ƒ } |  j  |  j j i t j j d | ƒ | 6t j j d | ƒ | 6ƒ |  j j ƒ  |  j  |  j j i t j j d | ƒ | 6t j j d | ƒ | 6t j j d | ƒ | 6ƒ d  S(   Ni    i   RÉ   i   (	   R   R+   t   _tocR0   R1   t   _refreshR   R   R¿   (   R   RF   RK   RJ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_refresh·  s    (((c         C   s¨   |  j  j |  j d ƒ } |  j  j |  j d ƒ } |  j |  j ƒ |  _  |  j |  j  j i  ƒ d |  j  _ |  j  j ƒ  |  j t	 |  j  j j
 ƒ  ƒ t	 | | g ƒ ƒ d  S(   Ni    i   iýÿÿÿ(   R+   R0   R1   R*   R)   R   R
  t   _skewfactorR  t   sortedR6   (   R   RF   RK   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt    test_refresh_after_safety_periodÈ  s    c            sî   ˆ j  t ‡ f d †  ƒ ˆ j j ˆ j d ƒ ‰  ˆ j ˆ j j ˆ  ƒ t j j	 d ˆ  ƒ ƒ t j
 t j j	 ˆ j d ˆ  ƒ ƒ ˆ j ˆ j j i t j j	 d ˆ  ƒ ˆ  6ƒ ˆ j j ƒ  ˆ j  t ‡  ‡ f d †  ƒ ˆ j ˆ j j i  ƒ d  S(   Nc              s   ˆ  j  j d ƒ S(   NRS   (   R+   t   _lookup(    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Ý  RH   i    RÉ   c              s   ˆ j  j ˆ  ƒ S(   N(   R+   R  (    (   RF   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   å  RH   (   RL   RM   R+   R0   R1   R   R  R   R   R¿   RB   R)   R
  R—   (   R   (    (   RF   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_lookupÛ  s    +",c         C   s   |  j  j ƒ  |  j  j ƒ  d  S(   N(   R+   R›   Rœ   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR�   è  s    c         C   si   d „  } |  j  |  j d | ƒ} | j d ƒ } |  j | j  | ƒ | j d ƒ } |  j | j  | ƒ d  S(   Nc         S   s   d  S(   N(   R£   (   t   s(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   dummy_factoryð  s    RT   Rä   (   R*   R)   Rß   t   assertIsRâ   (   R   R  Rª   t   foldert   folder1_alias(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_folderí  s    	c         C   sj   x- t  d ƒ D] } |  j j t j t ƒ ƒ q Wt j t j j	 |  j
 d d ƒ ƒ x |  j D] } q\ Wd  S(   Ni
   R»   s	   stray-dir(   t   rangeR+   R0   R   R   R2   R   RÓ   R   R¿   R)   (   R   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_directory_in_folderù  s
    "t   umasks   test needs os.umask()RØ   s   test needs os.stat()c         C   sš   t  j |  j d ƒ } t j d ƒ } z |  j j | ƒ } Wd  t j | ƒ Xt j j |  j	 |  j j
 | ƒ ƒ } t j | ƒ j } |  j | d @d ƒ d  S(   Ni    iI   (   R   R¼   R1   R   R  R+   R0   R   R¿   R)   R  RØ   t   st_modeR   (   R   R   t
   orig_umaskR   R   RÛ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_file_permissions  s    $c         C   s{   t  j d ƒ } z |  j j d ƒ } Wd  t  j | ƒ Xt  j j | j d ƒ } t  j | ƒ } | j } |  j	 | d @ƒ d  S(   Ni    t	   subfoldert   maildirfolderiI   (
   R   R  R+   Rß   R   R¿   R)   RØ   R  RX   (   R   R  R  R   t   stt   perms(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_folder_file_perms  s    	c            sý   ˆ j  j ƒ  xD d	 D]< } t j t j j ˆ j  j | ƒ t j ƒ  d f d ƒ q Wd ˆ j  _ ˆ j  j	 ‰  ‡  ‡ f d †  } ˆ j  j ƒ  ˆ j
 | ƒ  ƒ t j j ˆ j d d ƒ } t | d ƒ } | j ƒ  t j | ƒ ˆ j  j ƒ  ˆ j | ƒ  ƒ d  S(
   NR»   RÉ   i   i   iýÿÿÿc              s   ˆ j  j ˆ  k	 S(   N(   R+   R
  (    (   t   orig_tocR   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   refreshed=  s    s
   stray-fileRè   (   R»   RÉ   (   R+   R  R   Rì   R   R¿   R)   Rí   R  R
  RX   Rê   R-   R"   R   (   R   RÕ   R$  t   filenameR=   (    (   R#  R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_reread$  s    
N(   R%   R&   R£   R*   R,   RÀ   RÇ   RÍ   RÏ   RÑ   RÖ   RÐ   Rá   Rå   Rç   Rò   R	  R  R  R  R�   R  R  t   unittestt
   skipUnlesst   hasattrR   R  R"  R&  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR±   ñ  s2   									
				
		/						''t   _TestSingleFilec           B   s    e  Z d  Z d „  Z d „  Z RS(   s&   Common tests for single-file mailboxesc         C   s�   t  j |  j ƒ j } |  j j |  j d ƒ |  j j ƒ  t  j |  j ƒ j } |  j | | ƒ |  j j	 ƒ  |  j
 |  j ƒ |  _ |  j t |  j ƒ d ƒ d  S(   Ni    i   (   R   RØ   R)   t   st_inoR+   R0   R1   R—   R   R-   R*   R   (   R   t   inode_beforet   inode_after(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_doesnt_rewriteQ  s    c         C   sœ   t  j |  j ƒ j d B} t  j |  j | ƒ |  j j |  j d ƒ |  j j |  j d ƒ } |  j j | ƒ |  j j	 ƒ  |  j
 t  j |  j ƒ j | ƒ d  S(   Ni¶  i    i   (   R   RØ   R)   R  t   chmodR+   R0   R1   RB   R—   R   (   R   RÛ   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_permissions_after_flushe  s    (   R%   R&   t   __doc__R.  R0  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR*  N  s   	t   _TestMboxMMDFc           B   s}   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z e j e	 e
 d ƒ d ƒ e j e	 e d ƒ d ƒ d	 „  ƒ ƒ Z d
 „  Z RS(   c         C   sO   |  j  j ƒ  |  j |  j ƒ x+ t j |  j d ƒ D] } t j | ƒ q4 Wd  S(   Ns   .*(   R+   R-   R$   R)   t   globR    R"   (   R   t   lock_remnant(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR.   y  s    c         C   sP   |  j  j d ƒ } |  j |  j  | j ƒ  d ƒ |  j |  j  | j ƒ  d ƒ d  S(   Ns   From foo@bar blah
From: foo

0
s   foo@bar blahs   0
(   R+   R0   R   t   get_fromR   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_from_string  s    c         C   s?   x8 t  j t  j f D]$ } | d ƒ } |  j j | ƒ } q Wd  S(   Ns   From foo@bar blah
From: foo

0
(   R   t   mboxMessaget   MMDFMessageR+   R0   (   R   t   class_R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_mbox_or_mmdf_message…  s    c         C   sý   g  t  d ƒ D] } |  j | ^ q } x | D] } |  j j | ƒ q- W|  j j ƒ  t j j |  j ƒ } |  j	 |  j ƒ |  _ |  j
 t |  j ƒ d ƒ x3 |  j j ƒ  D]" } |  j |  j j | ƒ | ƒ q§ W|  j j ƒ  |  j
 | t j j |  j ƒ ƒ d  S(   Ni   (   Ry   R1   R+   R0   R-   R   R   t   getmtimeR)   R*   R   R   Rk   R   R5   (   R   R   Rs   R   t   mtimeR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_open_close_open‹  s    & c         C   sÚ   |  j  j t ƒ x+ t d ƒ D] } |  j  j |  j | ƒ q W|  j  j t ƒ |  j  j j ƒ  |  j  j j d ƒ |  j  j j ƒ  } |  j  j	 ƒ  t
 |  j d ƒ � } |  j | | j ƒ  ƒ Wd  QX|  j |  j ƒ |  _  d  S(   Ni   i    t   rb(   R+   R0   R2   Ry   R1   t   _fileR—   R;   R[   R-   Rê   R)   R   R*   (   R   R   R    R=   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_add_and_close™  s    t   forks   Test needs fork().t
   socketpairs   Test needs socketpair().c         C   s  t  j ƒ  \ } } |  j | j ƒ |  j | j ƒ t j ƒ  } | d k r– z8 |  j j ƒ  | j d ƒ | j	 d ƒ |  j j
 ƒ  Wd  t j d ƒ Xn  | j	 d ƒ z |  j t j |  j j ƒ Wd  | j d ƒ t j | d ƒ \ } } X|  j j ƒ  |  j j
 ƒ  d  S(   Ni    t   ci   t   p(   Rõ   RB  t
   addCleanupR-   R   RA  R+   R›   t   sendt   recvRœ   t   _exitRL   R   t   ExternalClashErrort   waitpid(   R   RC  RD  R  t
   exited_pidt   status(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_lock_conflict§  s&    c         C   s—   d } |  j  j | ƒ } |  j  j ƒ  |  j  j ƒ  |  j |  j ƒ |  _  |  j  j ƒ  |  j  j | ƒ } |  j  j ƒ  |  j |  j  j ƒ |  j  j ƒ  d  S(   Ns   Subject: sub

body
(	   R+   R0   R—   R-   R*   R)   R›   R   t   _locked(   R   R   RK   RJ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_relockÌ  s    (   R%   R&   R.   R6  R:  R=  R@  R'  R(  R)  R   Rõ   RM  RO  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR2  w  s   					'$t   TestMboxc           B   se   e  Z d d  „ Z e j e e d ƒ d ƒ e j e e d ƒ d ƒ d „  ƒ ƒ Z d „  Z	 d „  Z
 RS(	   c         C   s   t  j | | ƒ S(   N(   R   t   mbox(   R   R   RT   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Þ  RH   R  s   test needs os.umask()RØ   s   test needs os.stat()c         C   s©   zh t  j d ƒ } |  j j ƒ  t  j |  j ƒ t j |  j d t ƒ|  _ |  j j	 d ƒ |  j j ƒ  Wd  t  j | ƒ Xt  j
 |  j ƒ } | j } |  j | d @ƒ d  S(   Ni?   t   createRH   iI   (   R   R  R+   R-   R"   R)   R   RQ  Rl   R0   RØ   R  RX   (   R   t	   old_umaskR   R!  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_file_permsà  s    	c         C   sd   t  j j ƒ  } d | d <| j d ƒ |  j j | ƒ } |  j j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns   john@example.comt   Froms   No newline at the ends   No newline at the end
(	   R   R   R   t   set_payloadR+   R0   RV   R   R   (   R   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_terminating_newlineô  s    
c         C   s”   |  j  j d ƒ t |  j ƒ �' } | j ƒ  } |  j | d d ƒ Wd  QX|  j  j d ƒ t |  j ƒ �' } | j ƒ  } |  j | d d ƒ Wd  QXd  S(   Ns   From: foo

0iýÿÿÿs   0

s   From: foo

0
(   R+   R0   Rê   R)   R[   R   (   R   R=   t   data(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_message_separatorþ  s    N(   R%   R&   R£   R*   R'  R(  R)  R   RT  RW  RY  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRP  Ü  s
   '	
t   TestMMDFc           B   s   e  Z d d  „ Z RS(   c         C   s   t  j | | ƒ S(   N(   R   t   MMDF(   R   R   RT   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG     RH   N(   R%   R&   R£   R*   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRZ    s   t   TestMHc           B   s\   e  Z d	 d  „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z RS(
   c         C   s   t  j | | ƒ S(   N(   R   t   MH(   R   R   RT   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG     RH   c         C   sx   |  j  j d ƒ |  j  j d ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d ƒ ƒ d  S(   NRÜ   RÝ   RÞ   i   (   RÜ   RÝ   RÞ   (   R+   Rß   R   R   Rà   R{   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRá     s    c         C   sö   d „  } |  j  |  j | ƒ |  _ |  j j d ƒ } |  j j d ƒ } | j |  j d ƒ |  j t j	 j
 t j	 j |  j d ƒ ƒ ƒ |  j j d ƒ } |  j | j | j ƒ  d ƒ |  j d ƒ |  j | j  |  j j  ƒ |  j | j  |  j j  ƒ d  S(   Nc         S   s   d  S(   N(   R£   (   R  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR    s    s   foo.barR‡   i    (   R*   R)   R+   Rß   Râ   R0   R1   R   R   R   R   R¿   R   R5   R6   R  (   R   R  t
   new_folderRã   Rä   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRå     s    	+c         C   s¬  |  j  j d ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d	 ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j t |  j  j ƒ  ƒ t d
 ƒ ƒ |  j  j d ƒ |  j t |  j  j ƒ  ƒ d ƒ |  j |  j  j ƒ  g  ƒ d  S(   NRÜ   RÝ   i   i   RÞ   i    (   RÜ   RÝ   (   RÝ   (   RÝ   RÞ   (   RÝ   (   R+   Rß   R   R   Rà   R{   Ræ   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRç   0  s     %%%%c         C   s~  |  j  |  j j ƒ  i  ƒ t j |  j d ƒ } | j d ƒ |  j j | ƒ } |  j  |  j j ƒ  i | g d 6ƒ t j |  j d ƒ } | j d d d g ƒ |  j j | ƒ } |  j  |  j j ƒ  i | | g d 6| g d 6| g d 6ƒ | j d g ƒ | |  j | <|  j  |  j j ƒ  i | g d 6| g d 6| g d 6| g d 6ƒ |  j j	 | ƒ |  j  |  j j ƒ  i | g d 6ƒ d  S(   Ni    RS   i   R‡   t   repliedt   flagged(
   R   R+   t   get_sequencesR   t	   MHMessageR1   t   add_sequenceR0   t   set_sequencesRB   (   R   R`   RF   Re   RK   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_sequencesC  s"    #(!c         C   sK   t  j |  j d ƒ } | j d ƒ |  j j | ƒ } |  j j | ƒ } d  S(   Ni    RS   (   R   Rb  R1   Rc  R+   R0   R_   (   R   R`   RF   t   refmsg0(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_issue2625W  s    c         C   sV   t  j |  j d ƒ } |  j j | ƒ } |  j j ƒ  |  j j | ƒ |  j j ƒ  d  S(   Ni    (   R   Rb  R1   R+   R0   R›   RB   Rœ   (   R   R`   RF   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_issue7627]  s
    c   	      C   s  t  j |  j d ƒ } t  j |  j d ƒ } t  j |  j d ƒ } t  j |  j d ƒ } | j d d g ƒ | j d g ƒ | j d d g ƒ | j d d d	 g ƒ |  j j | ƒ } |  j j | ƒ } |  j j | ƒ } |  j j | ƒ } |  j |  j j ƒ  i | | | | g d 6| g d 6| g d 6| g d 6| g d	 6ƒ |  j j | ƒ |  j |  j j ƒ  i | | | g d 6| g d 6| g d 6| g d	 6ƒ |  j j	 ƒ  |  j |  j j
 ƒ  d d d g ƒ | } | d } | d } |  j |  j j ƒ  i d d d g d 6d g d 6d g d 6d g d	 6ƒ |  j j | ƒ } |  j j | ƒ } |  j j | ƒ } |  j j | ƒ } |  j j | ƒ |  j j | ƒ |  j j ƒ  |  j j	 ƒ  |  j j ƒ  |  j |  j j ƒ  i d d d d
 d g d 6d g d 6d g d 6d g d	 6ƒ d  S(   Ni    i   i   i   RS   t   unseenR`  R‡   R_  i   i   (   R   Rb  R1   Rd  R+   R0   R   Ra  RB   t   packR6   R›   Rœ   (	   R   R`   Re   RÌ   t   msg3RF   RK   RJ   t   key3(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_packd  sL     "'"

5c         C   s   t  j j |  j d ƒ S(   Ns   .mh_sequences.lock(   R   R   R¿   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRš   �  s    N(   R%   R&   R£   R*   Rá   Rå   Rç   Re  Rg  Rh  Rm  Rš   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR\    s   								,t	   TestBabylc           B   s&   e  Z d d  „ Z d „  Z d „  Z RS(   c         C   s   t  j | | ƒ S(   N(   R   t   Babyl(   R   R   RT   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   –  RH   c         C   sO   |  j  j ƒ  |  j |  j ƒ x+ t j |  j d ƒ D] } t j | ƒ q4 Wd  S(   Ns   .*(   R+   R-   R$   R)   R3  R    R"   (   R   R4  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR.   ˜  s    c         C   s]  |  j  |  j j ƒ  g  ƒ t j |  j d ƒ } | j d ƒ |  j j | ƒ } |  j  |  j j ƒ  d g ƒ t j |  j d ƒ } | j d d d g ƒ |  j j | ƒ } |  j  t	 |  j j ƒ  ƒ t	 d d g ƒ ƒ | j d d g ƒ | |  j | <|  j  t	 |  j j ƒ  ƒ t	 d d d g ƒ ƒ |  j j
 | ƒ |  j  t	 |  j j ƒ  ƒ t	 d g ƒ ƒ d  S(   Ni    RS   i   R‡   t   answeredt   blaht   filed(   R   R+   t
   get_labelsR   t   BabylMessageR1   t	   add_labelR0   t
   set_labelsR{   RB   (   R   R`   RF   Re   RK   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_labelsž  s    +N(   R%   R&   R£   R*   R.   Rw  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRn  ”  s   	t   TestMessagec           B   sk   e  Z e j Z d  „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d „  Z d	 „  Z RS(
   c         C   s   t  j |  _ d  S(   N(   R    R(   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR,   µ  s    c         C   s   |  j  |  j ƒ d  S(   N(   R$   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR.   ¸  s    c         C   s<   t  j t ƒ } |  j | ƒ } |  j | ƒ |  j | ƒ d  S(   N(   R   R3   R2   R*   t   _post_initialize_hookR   (   R   t   eMMR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_with_eMM»  s    c         C   s-   |  j  t ƒ } |  j | ƒ |  j | ƒ d  S(   N(   R*   R2   Ry  R   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_with_stringÂ  s    c         C   sb   t  |  j d ƒ �J } | j t ƒ | j d ƒ |  j | ƒ } |  j | ƒ |  j | ƒ Wd  QXd  S(   Ns   w+i    (   Rê   R)   R:   R2   R;   R*   Ry  R   (   R   R=   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_with_fileÈ  s    c         C   s•   |  j  ƒ  } |  j | ƒ |  j | t j j ƒ |  j | t j ƒ |  j | |  j  ƒ |  j | j ƒ  g  ƒ |  j	 | j
 ƒ  ƒ |  j | j ƒ  ƒ d  S(   N(   R*   Ry  R   R   R   R   R   R   R6   RX   R   RW   R   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_with_nothingÑ  s    c            s   ˆ  j  t ‡  f d †  ƒ d  S(   Nc              s   ˆ  j  t ƒ  ƒ S(   N(   R*   t   object(    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   Þ  RH   (   RL   R¦   (   R   (    (   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_incorrectlyÜ  s    c         C   s9   t  j t ƒ } |  j ƒ  } | j | ƒ |  j | ƒ d  S(   N(   R   R3   R2   R*   t   _become_messageR   (   R   Rz  R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_become_messageà  s    c            s†   |  j  ƒ  ‰  xH t j t j t j t j t j t j f D] } | ƒ  ‰ ˆ  j ˆ ƒ q7 Wt	 j
 j ƒ  ‰ |  j t ‡  ‡ f d †  ƒ d  S(   Nc              s   ˆ  j  ˆ ƒ S(   N(   t   _explain_to(    (   R   t	   other_msg(    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ñ  RH   (   R*   R   R   R¼   R7  Rb  Rt  R8  Rƒ  R   R   RL   R¦   (   R   R9  (    (   R   R„  s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_explain_toç  s    	c         C   s   d  S(   N(    (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRy  ó  s    (   R%   R&   R   R   R*   R,   R.   R{  R|  R}  R~  R€  R‚  R…  Ry  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRx  ±  s   											t   TestMaildirMessagec           B   sG   e  Z e j Z d  „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(   c         C   s*   |  j  | j d ƒ |  j  | j d ƒ d  S(   NRÉ   RH   (   R   t   _subdirt   _info(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRy  ü  s    c            sÎ   t  j t ƒ ‰  |  j ˆ  j ƒ  d ƒ ˆ  j d ƒ |  j ˆ  j ƒ  d ƒ ˆ  j d ƒ |  j ˆ  j ƒ  d ƒ |  j t ‡  f d †  ƒ |  j ˆ  j ƒ  d ƒ ˆ  j d ƒ |  j ˆ  j ƒ  d ƒ |  j ˆ  ƒ d  S(   NRÉ   R»   c              s   ˆ  j  d ƒ S(   NRÒ   (   R½   (    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG     RH   (	   R   R¼   R2   R   RÄ   R½   RL   t
   ValueErrorR   (   R   (    (   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_subdir   s    c         C   s  t  j t ƒ } |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d	 ƒ |  j | j ƒ  d ƒ |  j	 | ƒ d  S(
   NRH   RÉ   t   Ft   SDTPt   DPSTt   FTt   DFPSTt   TDRPt   FS(
   R   R¼   R2   R   RÅ   RÄ   RÃ   t   add_flagt   remove_flagR   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   test_flags  s    c         C   se   t  j t ƒ } | j ƒ  t j ƒ  } |  j t | ƒ d | ƒ | j d ƒ |  j | j ƒ  d ƒ d  S(   Ni<   g        (	   R   R¼   R2   t   get_dateRí   R|   t   abst   set_dateR   (   R   R   t   diff(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_date  s
    c            sr   t  j t ƒ ‰  |  j ˆ  j ƒ  d ƒ ˆ  j d ƒ |  j ˆ  j ƒ  d ƒ |  j t ‡  f d †  ƒ |  j ˆ  ƒ d  S(   NRH   s	   1,foo=barc              s   ˆ  j  d  ƒ S(   N(   R¾   R£   (    (   R   (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   -  RH   (	   R   R¼   R2   R   t   get_infoR¾   RL   R¦   R   (   R   (    (   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_info'  s    c         C   s  t  j t ƒ } |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ | j	 d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j
 | ƒ d  S(	   NRH   t   SFR‘  s   2,FSs   1,t   RPTt   Ds   2,D(   R   R¼   R2   R   Rš  RÃ   RÅ   R¾   R“  R’  R   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_info_and_flags0  s    (   R%   R&   R   R¼   R*   Ry  RŠ  R”  R™  R›  RŸ  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR†  ø  s   							t   _TestMboxMMDFMessagec           B   sA   e  Z e j Z d  „  Z d „  Z d „  Z d „  Z d d „ Z
 RS(   c         C   s   |  j  | ƒ d  S(   N(   t   _check_from(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRy  G  s    c         C   sE   t  j t ƒ } | j d ƒ t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns   From foo@bar blahs   foo@bar blah(   R   R   R2   t   set_unixfromR7  R   R5  (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize_with_unixfromJ  s    c         C   s‰   t  j t ƒ } |  j | ƒ | j d ƒ |  j | j ƒ  d ƒ | j d t ƒ |  j | d ƒ | j d t j	 ƒ  ƒ |  j | d ƒ d  S(   Ns   foo bars   foo@bars	   blah@temp(
   R   R7  R2   R¡  t   set_fromR   R5  Rl   Rí   t	   localtime(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_fromQ  s    c         C   sÂ   t  j t ƒ } |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ |  j | ƒ d  S(	   NRH   R‹  t   XODRt   RODXt   FAt   RODFAXt   FDXAt   RO(	   R   R7  R2   R   RÅ   RÃ   R’  R“  R   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR”  \  s    c         C   s<   | d  k r d } n  |  j t j | d | j ƒ  ƒ ƒ d  S(   Ns   MAILER-DAEMONs.    \w{3} \w{3} [\d ]\d [\d ]\d:\d{2}:\d{2} \d{4}(   R£   Rü   Rø   Rû   R5  (   R   R   t   sender(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR¡  j  s
    	N(   R%   R&   R   t   _mboxMMDFMessageR*   Ry  R£  R¦  R”  R£   R¡  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR   C  s   					t   TestMboxMessagec           B   s   e  Z e j Z RS(    (   R%   R&   R   R7  R*   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR¯  s  s   t   TestMHMessagec           B   s#   e  Z e j Z d  „  Z d „  Z RS(   c         C   s   |  j  | j g  ƒ d  S(   N(   R   t
   _sequences(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRy  |  s    c         C   s”  t  j t ƒ } |  j | j ƒ  g  ƒ | j d g ƒ |  j | j ƒ  d g ƒ | j g  ƒ |  j | j ƒ  g  ƒ | j d ƒ |  j | j ƒ  d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d ƒ |  j | j ƒ  d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d d g ƒ |  j | j ƒ  d d g ƒ d  S(   Nt   foobarRi  R`  R_  (   R   Rb  R2   R   Ra  Rd  Rc  t   remove_sequence(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRe    s(    (   R%   R&   R   Rb  R*   Ry  Re  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR°  x  s   		t   TestBabylMessagec           B   s,   e  Z e j Z d  „  Z d „  Z d „  Z RS(   c         C   s   |  j  | j g  ƒ d  S(   N(   R   t   _labels(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRy  ›  s    c         C   s”  t  j t ƒ } |  j | j ƒ  g  ƒ | j d g ƒ |  j | j ƒ  d g ƒ | j g  ƒ |  j | j ƒ  g  ƒ | j d ƒ |  j | j ƒ  d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d ƒ |  j | j ƒ  d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d ƒ |  j | j ƒ  d d g ƒ | j d d g ƒ |  j | j ƒ  d d g ƒ d  S(   NR²  Rr  t   resentRi  Rp  (   R   Rt  R2   R   Rs  Rv  Ru  t   remove_label(   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRw  ž  s(    c         C   s{  t  j t ƒ } | j ƒ  } |  j | j ƒ  g  ƒ |  j | j ƒ  ƒ d | d <d | d <|  j | j ƒ  j ƒ  g  ƒ | j | ƒ | j ƒ  } |  j | j ƒ  d d g ƒ |  j | d d ƒ |  j | d d ƒ |  j | j ƒ  ƒ | j	 ƒ  |  j | j ƒ  d d g ƒ |  j | j ƒ  ƒ | j ƒ  } |  j | j ƒ  d d d d d g ƒ x& d	 D] } |  j | | | | ƒ qUWd  S(
   Ns
   FooBar 1.0s
   User-Agentt   Blahs
   X-Whatevert   DateRU  t   Tot   Subject(   s
   User-AgentR¹  RU  Rº  R»  (
   R   Rt  R2   t   get_visibleR   R6   RW   R   t   set_visiblet   update_visible(   R   R   t   visiblet   header(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_visibleµ  s*    



(   R%   R&   R   Rt  R*   Ry  Rw  RÁ  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR´  —  s   			t   TestMMDFMessagec           B   s   e  Z e j Z RS(    (   R%   R&   R   R8  R*   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRÂ  Î  s   t   TestMessageConversionc           B   s³   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sa   xZ t  j t  j t  j t  j t  j t  j f D]. } t  j t ƒ } | | ƒ } |  j | ƒ q+ Wd  S(   N(	   R   R   R¼   R7  Rb  Rt  R8  R2   R   (   R   R9  t	   msg_plainR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_plain_to_xÕ  s    c         C   sa   xZ t  j t  j t  j t  j t  j t  j f D]. } | t ƒ } t  j | ƒ } |  j | ƒ q+ Wd  S(   N(	   R   R   R¼   R7  Rb  Rt  R8  R2   R   (   R   R9  R   RÄ  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_x_to_plainÞ  s    c            sR   xK t  j t  j t  j t  j t  j t  j f D] ‰  |  j t ‡  f d †  ƒ q+ Wd  S(   Nc              s
   ˆ  t  ƒ S(   N(   RY   (    (   R9  (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRG   ì  RH   (	   R   R   R¼   R7  Rb  Rt  R8  RL   R¦   (   R   (    (   R9  s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_x_to_invalidç  s    c         C   s—   t  j t ƒ } | j d ƒ | j d ƒ | j ƒ  } t  j | ƒ } |  j | ƒ |  j | j ƒ  d ƒ |  j | j	 ƒ  d ƒ |  j | j ƒ  | ƒ d  S(   Nt   DFPRSTR»   (
   R   R¼   R2   RÃ   R½   R•  R   R   RÅ   RÄ   (   R   t   msg_maildirt   dateR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_maildir_to_maildirî  s    c         C   só   d d d d d d d f } xÑ t  j t  j f D]½ } t  j t ƒ } | j d ƒ xo | D]g \ } } | j | ƒ | | ƒ } |  j | j ƒ  | ƒ |  j | j	 ƒ  d t
 j t
 j d ƒ ƒ ƒ qW W| j d ƒ |  j | | ƒ j ƒ  d ƒ q. Wd  S(   NRž  RH   R‹  t   Pt   Rt   ARË   t   TRÈ  t   RDFAg        s   MAILER-DAEMON %sR»   t   RODFA(   Rž  RH   (   R‹  R‹  (   RÌ  RH   (   RÍ  RÎ  (   RË   RÍ  (   RÏ  Rž  (   RÈ  RÐ  (   R   R7  R8  R¼   R2   R—  RÃ   R   RÅ   R5  Rí   t   asctimet   gmtimeR½   (   R   t   pairsR9  RÉ  t   settingt   resultR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_maildir_to_mboxmmdfú  s    c      	   C   s¶   t  j t ƒ } d d g f d d d g f d d g f d d d g f d g  f d	 d g f d
 d d g f f } x@ | D]8 \ } } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ qv Wd  S(   NRž  Ri  R‹  R`  RÌ  RÍ  R_  RË   RÏ  RÈ  (   R   R¼   R2   RÃ   R   Rb  Ra  (   R   RÉ  RÔ  RÕ  RÖ  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_maildir_to_mh
  s    $!c      
   C   s¼   t  j t ƒ } d d g f d d g f d d d g f d d d g f d g  f d	 d d
 g f d d
 d d g f f } x@ | D]8 \ } } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ q| Wd  S(   NRž  Ri  R‹  RÌ  t	   forwardedRÍ  Rp  RË   RÏ  t   deletedRÈ  (   R   R¼   R2   RÃ   R   Rt  Rs  (   R   RÉ  RÔ  RÕ  RÖ  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_maildir_to_babyl  s    c         C   sé   xâ t  j t  j f D]Î } | t ƒ } | j d t j d ƒ ƒ d d d d d d f } x\ | D]T \ } } | j | ƒ t  j | ƒ } |  j	 | j
 ƒ  | ƒ |  j	 | j ƒ  d ƒ q] W| j d ƒ |  j	 t  j | ƒ j ƒ  d ƒ q Wd  S(   Ns   foo@barg        RÍ  RË   t   ORH   Rž  RÏ  R‹  RÎ  RÑ  t   FRSTR»   (   RÍ  RË   (   RÜ  RH   (   Rž  RÏ  (   R‹  R‹  (   RÎ  RÍ  (   RÑ  RÝ  (   R   R7  R8  R2   R¤  Rí   RÓ  RÃ   R¼   R   RÅ   R•  RÄ   (   R   R9  t   msg_mboxMMDFRÔ  RÕ  RÖ  R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mboxmmdf_to_maildir!  s    	c         C   sœ   x• t  j t  j f D]� } | t ƒ } | j d ƒ | j d ƒ xR t  j t  j f D]> } | | ƒ } |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ qR Wq Wd  S(   NRÑ  s   foo@bar(	   R   R7  R8  R2   RÃ   R¤  R   RÅ   R5  (   R   R9  RÞ  t   class2_RÌ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mboxmmdf_to_mboxmmdf1  s    c      	   C   sÄ   x½ t  j t  j f D]© } | t ƒ } d g  f d d g f d d g f d d d g f d d d g f d	 d d g f f } x@ | D]8 \ } } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ q€ Wq Wd  S(
   NRÍ  RÜ  Ri  Rž  R‹  R`  RÎ  R_  RÑ  (   R   R7  R8  R2   RÃ   R   Rb  Ra  (   R   R9  RÞ  RÔ  RÕ  RÖ  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mboxmmdf_to_mh<  s    !c      	   C   sÄ   x½ t  j t  j f D]© } | t ƒ } d g  f d d g f d d d g f d d g f d d d g f d	 d d g f f } x@ | D]8 \ } } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ q€ Wq Wd  S(
   NRÍ  RÜ  Ri  Rž  RÚ  R‹  RÎ  Rp  RÑ  (   R   R7  R8  R2   RÃ   R   Rt  Rs  (   R   R9  R   RÔ  RÕ  RÖ  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mboxmmdf_to_babylI  s    c         C   sø   d	 d
 d f } xn | D]f \ } } t  j t ƒ } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ |  j t  j | ƒ j ƒ  d ƒ q Wt  j t ƒ } | j d ƒ | j d ƒ | j d ƒ |  j t  j | ƒ j ƒ  d ƒ |  j t  j | ƒ j ƒ  d ƒ d  S(   NRi  RH   R_  t   RSR`  R‘  R»   RÂ   (   Ri  RH   (   R_  Rä  (   R`  R‘  (   R   Rb  R2   Rc  R   R¼   RÅ   RÄ   (   R   RÔ  RÕ  RÖ  R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mh_to_maildirU  s    #c         C   sî   d d	 d
 f } xi | D]a \ } } t  j t ƒ } | j | ƒ x6 t  j t  j f D]" } |  j | | ƒ j ƒ  | ƒ qQ Wq Wt  j t ƒ } | j d ƒ | j d ƒ | j d ƒ x6 t  j t  j f D]" } |  j | | ƒ j ƒ  d ƒ qÄ Wd  S(   NRi  RÜ  R_  t   ROAR`  t   ROFt   OFA(   Ri  RÜ  (   R_  Ræ  (   R`  Rç  (   R   Rb  R2   Rc  R7  R8  R   RÅ   (   R   RÔ  RÕ  RÖ  R   R9  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mh_to_mboxmmdfd  s    $c         C   sb   t  j t ƒ } | j d ƒ | j d ƒ | j d ƒ |  j t  j | ƒ j ƒ  d d d g ƒ d  S(   NRi  R_  R`  (   R   Rb  R2   Rc  R   Ra  (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mh_to_mhs  s    c         C   sØ   d d g f d d g f d g  f f } xO | D]G \ } } t  j t ƒ } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ q. Wt  j t ƒ } | j d ƒ | j d ƒ | j d ƒ |  j t  j | ƒ j ƒ  d d g ƒ d  S(   NRi  R_  Rp  R`  (   R   Rb  R2   Rc  R   Rt  Rs  (   R   RÔ  RÕ  RÖ  R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_mh_to_babyl|  s    #c         C   sû   d d d d d d d f } xn | D]f \ } } t  j t ƒ } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ |  j t  j | ƒ j ƒ  d ƒ q" Wt  j t ƒ } x d D] } | j | ƒ q¢ W|  j t  j | ƒ j ƒ  d ƒ |  j t  j | ƒ j ƒ  d ƒ d  S(   NRi  RH   RÚ  t   STRr  RË   Rp  Rä  RÙ  t   PSt   editedR¶  R»   t   PRT(   Ri  RH   (   RÚ  Rì  (   Rr  RË   (   Rp  Rä  (   RÙ  Rí  (   Rî  RË   (   R¶  Rí  (   Ri  RÚ  Rr  Rp  RÙ  Rî  R¶  (   R   Rt  R2   Ru  R   R¼   RÅ   RÄ   (   R   RÔ  RÕ  RÖ  R   t   label(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_babyl_to_maildir‹  s    			#
c         C   sñ   d d d d d d d f } xi | D]a \ } } xR t  j t  j f D]> } t  j t ƒ } | j | ƒ |  j | | ƒ j ƒ  | ƒ qA Wq" Wt  j t ƒ } x d D] } | j | ƒ q� Wx6 t  j t  j f D]" } |  j | | ƒ j ƒ  d ƒ qÇ Wd  S(   NRi  RÜ  RÚ  t   RODRr  R¬  Rp  Ræ  RÙ  Rî  R¶  t   ODA(   Ri  RÜ  (   RÚ  Rò  (   Rr  R¬  (   Rp  Ræ  (   RÙ  R¬  (   Rî  R¬  (   R¶  R¬  (   Ri  RÚ  Rr  Rp  RÙ  Rî  R¶  (   R   R7  R8  Rt  R2   Ru  R   RÅ   (   R   RÔ  RÕ  RÖ  R9  R   Rð  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_babyl_to_mboxmmdfœ  s    			$
c         C   só   d d g f d g  f d g  f d d g f d g  f d g  f d g  f f } xO | D]G \ } } t  j t ƒ } | j | ƒ |  j t  j | ƒ j ƒ  | ƒ qR Wt  j t ƒ } x d	 D] } | j | ƒ q³ W|  j t  j | ƒ j ƒ  d d g ƒ d  S(
   NRi  RÚ  Rr  Rp  R_  RÙ  Rî  R¶  (   Ri  RÚ  Rr  Rp  RÙ  Rî  R¶  (   R   Rt  R2   Ru  R   Rb  Ra  (   R   RÔ  RÕ  RÖ  R   Rð  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_babyl_to_mh­  s    #
c      	   C   sÞ   t  j t ƒ } | j ƒ  x d D] } | j | ƒ q  Wt  j | ƒ } |  j | j ƒ  d d d d d d d g ƒ |  j | j ƒ  j ƒ  | j ƒ  j ƒ  ƒ x> | j ƒ  j ƒ  D]* } |  j | j ƒ  | | j ƒ  | ƒ q¬ Wd  S(	   NRi  RÚ  Rr  Rp  RÙ  Rî  R¶  (   Ri  RÚ  Rr  Rp  RÙ  Rî  R¶  (	   R   Rt  R2   R¾  Ru  R   Rs  R¼  R6   (   R   R   Rð  RÌ   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_babyl_to_babyl½  s    

	
((   R%   R&   RÅ  RÆ  RÇ  RË  R×  RØ  RÛ  Rß  Rá  Râ  Rã  Rå  Ré  Rê  Rë  Rñ  Rô  Rõ  Rö  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRÃ  Ó  s&   																					t   TestProxyFileBasec           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s¼   | j  d ƒ |  j | j ƒ  d ƒ | j  d ƒ |  j | j ƒ  d ƒ | j  d ƒ |  j | j d ƒ d ƒ | j  d ƒ |  j | j d ƒ d ƒ | j  d ƒ |  j | j d ƒ d	 ƒ d  S(
   Ni    R‡   i   t   ari   t   baiÿÿÿÿiè  t   r(   R;   R   R[   (   R   t   proxy(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt
   _test_readÏ  s    c         C   s:  | j  d ƒ |  j | j ƒ  d t j ƒ |  j | j ƒ  d t j ƒ |  j | j ƒ  d t j ƒ |  j | j ƒ  d ƒ | j  d ƒ |  j | j ƒ  d t j ƒ | j  d d t t j ƒ ƒ |  j | j ƒ  d t j ƒ | j  d d t t j ƒ ƒ |  j | j d ƒ d	 ƒ |  j | j d
 ƒ d t j ƒ d  S(   Ni    RS   R‡   t   fredt   bobi   t   oi   t   friöÿÿÿt   ed(   R;   R   t   readlineR   R\   R   (   R   Rû  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _test_readlineÜ  s    c         C   s  | j  d ƒ |  j | j ƒ  d t j d t j d t j d g ƒ | j  d ƒ |  j | j d ƒ d t j g ƒ | j  d t t j ƒ ƒ |  j | j d t t j ƒ ƒ d t j d t j g ƒ | j  d ƒ |  j | j d	 ƒ t j d t j d t j d g ƒ d  S(
   Ni    RS   R‡   Rý  Rþ  i   i   i   iè  (   R;   R   t	   readlinesR   R\   R   (   R   Rû  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _test_readlinesë  s    
#"c         C   sT   | j  d ƒ t | ƒ } |  j t | ƒ d t j d t j d t j d g ƒ d  S(   Ni    RS   R‡   Rý  Rþ  (   R;   t   iterR   Rz   R   R\   (   R   Rû  t   iterator(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _test_iterationú  s    c         C   s  | j  d ƒ |  j | j ƒ  d ƒ |  j | j t t j ƒ ƒ t j ƒ | j  d d ƒ |  j | j d t t j ƒ ƒ d t j ƒ | j  d t t j ƒ d ƒ |  j | j d ƒ d ƒ | j  d d ƒ |  j | j ƒ  d t j d t j ƒ | j  d	 ƒ |  j | j ƒ  d
 ƒ d  S(   Ni   i   i   Rú  iýÿÿÿR‡   i    Rÿ  id   RH   (   R;   R   t   tellR[   R   R   R\   (   R   Rû  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _test_seek_and_tell  s    %-(c         C   s   | j  ƒ  | j  ƒ  d  S(   N(   R-   (   R   Rû  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   _test_close  s    
(   R%   R&   Rü  R  R  R  R
  R  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR÷  Í  s   					t   TestProxyFilec           B   sY   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   s%   t  j |  _ t |  j d ƒ |  _ d  S(   Ns   wb+(   R    R(   R)   Rê   R?  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR,     s    c         C   s!   |  j  j ƒ  |  j |  j ƒ d  S(   N(   R?  R-   R$   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR.     s    c         C   s¨   |  j  j d ƒ |  j  j ƒ  } t j |  j  ƒ } |  j | j ƒ  | ƒ |  j |  j  j ƒ  | ƒ t j |  j  d ƒ } |  j | j ƒ  d ƒ |  j |  j  j ƒ  | ƒ d  S(   NRS   i    (   R?  R:   R	  R   t
   _ProxyFileR   (   R   t   post   proxy0t   proxy1(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_initialize   s    c         C   s-   |  j  j d ƒ |  j t j |  j  ƒ ƒ d  S(   NR‡   (   R?  R:   Rü  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_read+  s    c         C   sC   |  j  j d t j t j t j f ƒ |  j t j |  j  ƒ ƒ d  S(   Ns   foo%sbar%sfred%sbob(   R?  R:   R   R\   R  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_readline/  s    c         C   sC   |  j  j d t j t j t j f ƒ |  j t j |  j  ƒ ƒ d  S(   Ns   foo%sbar%sfred%sbob(   R?  R:   R   R\   R  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_readlines4  s    c         C   sC   |  j  j d t j t j t j f ƒ |  j t j |  j  ƒ ƒ d  S(   Ns   foo%sbar%sfred%sbob(   R?  R:   R   R\   R  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_iteration9  s    c         C   s=   |  j  j d t j t j f ƒ |  j t j |  j  ƒ ƒ d  S(   Ns
   foo%sbar%s(   R?  R:   R   R\   R
  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_seek_and_tell>  s     c         C   s=   |  j  j d t j t j f ƒ |  j t j |  j  ƒ ƒ d  S(   Ns
   foo%sbar%s(   R?  R:   R   R\   R  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRž   B  s     (   R%   R&   R,   R.   R  R  R  R  R  R  Rž   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR    s   								t   TestPartialFilec           B   sY   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   s%   t  j |  _ t |  j d ƒ |  _ d  S(   Ns   wb+(   R    R(   R)   Rê   R?  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR,   I  s    c         C   s!   |  j  j ƒ  |  j |  j ƒ d  S(   N(   R?  R-   R$   R)   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR.   M  s    c         C   su   |  j  j d t j d ƒ |  j  j ƒ  } t j |  j  d d ƒ } |  j | j ƒ  d ƒ |  j |  j  j ƒ  | ƒ d  S(   NRS   R‡   i   i   i    (   R?  R:   R   R\   R	  R   t   _PartialFileR   (   R   R  Rû  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  Q  s
    c         C   s3   |  j  j d ƒ |  j t j |  j  d d ƒ ƒ d  S(   Ns	   ***bar***i   i   (   R?  R:   Rü  R   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  Y  s    c         C   sZ   |  j  j d t j t j t j f ƒ |  j t j |  j  d d d t t j ƒ ƒ ƒ d  S(   Ns   !!!!!foo%sbar%sfred%sbob!!!!!i   i   i   (   R?  R:   R   R\   R  R   R  R   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  ]  s    c         C   sZ   |  j  j d t j t j t j f ƒ |  j t j |  j  d d d t t j ƒ ƒ ƒ d  S(   Ns   foo%sbar%sfred%sbob?????i    i   i   (   R?  R:   R   R\   R  R   R  R   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  c  s    c         C   sZ   |  j  j d t j t j t j f ƒ |  j t j |  j  d d d t t j ƒ ƒ ƒ d  S(   Ns   ____foo%sbar%sfred%sbob####i   i   i   (   R?  R:   R   R\   R  R   R  R   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  i  s    c         C   sT   |  j  j d t j t j f ƒ |  j t j |  j  d d d t t j ƒ ƒ ƒ d  S(   Ns   (((foo%sbar%s$$$i   i	   i   (   R?  R:   R   R\   R
  R   R  R   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  o  s     c         C   sT   |  j  j d t j t j f ƒ |  j t j |  j  d d d t t j ƒ ƒ ƒ d  S(   Ns   &foo%sbar%s^i   i   i   (   R?  R:   R   R\   R  R   R  R   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyRž   t  s     (   R%   R&   R,   R.   R  R  R  R  R  R  Rž   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  G  s   								s6   From some.body@dummy.domain  Sat Jul 24 13:43:35 2004
s]   From: some.body@dummy.domain
To: me@my.domain
Subject: Simple Test

This is a dummy message.
t   MaildirTestCasec           B   sS   e  Z d  „  Z d „  Z e d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(   c         C   sß   t  j |  _ t j j |  j ƒ r4 t  j |  j ƒ n  t j j |  j ƒ r\ t  j |  j ƒ n  t j	 |  j ƒ t j	 t j j
 |  j d ƒ ƒ t j	 t j j
 |  j d ƒ ƒ t j	 t j j
 |  j d ƒ ƒ d |  _ g  |  _ d  S(   NR»   RÒ   RÉ   i   (   R    R(   t   _dirR   R   R   R    t   isfileR"   RÓ   R¿   t   _countert	   _msgfiles(   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR,   ‡  s    	c         C   s„   t  t j |  j ƒ t j t j j |  j d ƒ ƒ t j t j j |  j d ƒ ƒ t j t j j |  j d ƒ ƒ t j |  j ƒ d  S(   NR»   RÒ   RÉ   (	   t   mapR   R"   R  R    t   rmdirR   R¿   R  (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR.   •  s
    c   	      C   s4  t  t j ƒ  d ƒ } |  j } |  j d 7_ t j j t | ƒ t | ƒ d d f ƒ } t j j |  j d | ƒ } t j j |  j | | ƒ } t	 | d ƒ �: } |  j
 j | ƒ | rÆ | j t ƒ n  | j t ƒ Wd  QXt t d ƒ rû t j | | ƒ n% t	 | d ƒ � } | j t ƒ Wd  QX|  j
 j | ƒ | S(   Ni@B i   t
   myhostnamet   mydomainRÒ   Rè   t   link(   R}   Rí   R  R   t   extsepR¿   t   strR   R  Rê   R  R/   R:   t   FROM_t   DUMMY_MESSAGER)  R"  (	   R   t   dirRQ  t   tR  R%  t   tmpnamet   newnameRZ   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   createMessageœ  s"    	*c         C   sE   t  j t j ƒ |  _ |  j |  j j ƒ  ƒ |  j |  j j ƒ  ƒ d S(   s   Test an empty maildir mailboxN(   R   R²   R    R(   RQ  RW   R«   (   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_empty_maildir°  s    c         C   s{   |  j  d ƒ t j t j ƒ |  _ |  j j ƒ  } |  j | ƒ | j j	 ƒ  |  j
 |  j j ƒ  ƒ |  j
 |  j j ƒ  ƒ d  S(   NR»   (   R+  R   R²   R    R(   RQ  R«   Rü   RZ   R-   RW   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_nonempty_maildir_curº  s    c         C   s{   |  j  d ƒ t j t j ƒ |  _ |  j j ƒ  } |  j | ƒ | j j	 ƒ  |  j
 |  j j ƒ  ƒ |  j
 |  j j ƒ  ƒ d  S(   NRÉ   (   R+  R   R²   R    R(   RQ  R«   Rü   RZ   R-   RW   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_nonempty_maildir_newÄ  s    c         C   s±   |  j  d ƒ |  j  d ƒ t j t j ƒ |  _ |  j j ƒ  } |  j | ƒ | j j	 ƒ  |  j j ƒ  } |  j | ƒ | j j	 ƒ  |  j
 |  j j ƒ  ƒ |  j
 |  j j ƒ  ƒ d  S(   NR»   RÉ   (   R+  R   R²   R    R(   RQ  R«   Rü   RZ   R-   RW   (   R   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_nonempty_maildir_bothÎ  s    c         C   sÁ   d d  l  } |  j d t ƒ } d } t | ƒ } xp t j | | j j ƒ  j ƒ D]P } | d 7} |  j	 | d d ƒ |  j	 t
 t | ƒ ƒ t
 t ƒ t
 t ƒ ƒ qO W| j ƒ  |  j	 | d ƒ d  S(   NiÿÿÿÿR»   i    i   t   subjects   Simple Test(   t   email.parserR+  Rl   Rê   R   t   PortableUnixMailboxt   parsert   Parsert   parseR   R   R$  R%  R&  R-   (   R   R   t   fnamet   nt   fidR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   test_unix_mboxÜ  s    
0
(   R%   R&   R,   R.   RY   R+  R,  R-  R.  R/  R9  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyR  …  s   			
	
	
	sK  Return-Path: <gkj@gregorykjohnson.com>
X-Original-To: gkj+person@localhost
Delivered-To: gkj+person@localhost
Received: from localhost (localhost [127.0.0.1])
        by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
        for <gkj+person@localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
Delivered-To: gkj@sundance.gregorykjohnson.com
Received: from localhost [127.0.0.1]
        by localhost with POP3 (fetchmail-6.2.5)
        for gkj+person@localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
Received: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])
        by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
        for <gkj@gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
Received: by andy.gregorykjohnson.com (Postfix, from userid 1000)
        id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
Date: Wed, 13 Jul 2005 17:23:11 -0400
From: "Gregory K. Johnson" <gkj@gregorykjohnson.com>
To: gkj@gregorykjohnson.com
Subject: Sample message
Message-ID: <20050713212311.GC4701@andy.gregorykjohnson.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="NMuMz9nt05w80d4+"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i


--NMuMz9nt05w80d4+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

This is a sample message.

--
Gregory K. Johnson

--NMuMz9nt05w80d4+
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="text.gz"
Content-Transfer-Encoding: base64

H4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs
3FYlAAAA

--NMuMz9nt05w80d4+--
s   <gkj@gregorykjohnson.com>s   Return-Paths   gkj+person@localhosts   X-Original-Tos   Delivered-Tos·   from localhost (localhost [127.0.0.1])
        by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
        for <gkj+person@localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)t   Receiveds    gkj@sundance.gregorykjohnson.coms¡   from localhost [127.0.0.1]
        by localhost with POP3 (fetchmail-6.2.5)
        for gkj+person@localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)sá   from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])
        by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
        for <gkj@gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)st   by andy.gregorykjohnson.com (Postfix, from userid 1000)
        id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)s   Wed, 13 Jul 2005 17:23:11 -0400R¹  s.   "Gregory K. Johnson" <gkj@gregorykjohnson.com>RU  s   gkj@gregorykjohnson.comRº  s   Sample messageR»  s   1.0s   Mime-Versions,   multipart/mixed; boundary="NMuMz9nt05w80d4+"s   Content-Typet   inlines   Content-Dispositions   Mutt/1.5.9is
   User-Agents1   This is a sample message.

--
Gregory K. Johnson
sR   H4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs
3FYlAAAA
c          C   sQ   t  t t t t t t t t t	 t
 t t t t t f }  t j |  Œ  t j ƒ  d  S(   N(   R©   R±   RP  RZ  R\  Rn  Rx  R†  R¯  R°  R´  RÂ  RÃ  R  R  R  R    t   run_unittestt   reap_children(   t   tests(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt	   test_main?  s    			t   __main__(3   R   R¸   Rí   RØ   Rõ   R   t   email.messageRø   t   shutilR4   R8   t   testR    R'  R   R3  t   fcntlt   ImportErrort   import_moduleRl   R   R   R'   t   TestCaseR©   R±   R*  R2  RP  RZ  R\  Rn  Rx  R†  R   R¯  R°  R´  RÂ  RÃ  R÷  R  R  R%  R&  R  R2   R	   R   R?  R%   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mailbox.pyt   <module>   sˆ   ÿ Ÿ#ÿ ^)e/„GK07úI15•
		
