
>\l  ã               @   sJ   d  d l  m Z d  d l m Z d d l m Z Gd d „  d e ƒ Z d S)é    )ÚTestCase)Úopen_workbooké   )Úfrom_this_dirc               @   sX   e  Z d  Z d d „  Z d d „  Z d d „  Z d d „  Z d	 d
 „  Z d d „  Z d S)ÚTestXlsxCommentsc             C   s[   t  t d ƒ ƒ } | j d ƒ } | j } |  j t | ƒ d ƒ |  j | d j d ƒ d  S)Nztest_comments_excel.xlsxr   r   Zhello)r   r   )r   r   Úsheet_by_indexÚcell_note_mapÚassertEqualÚlenÚtext)ÚselfÚbookÚsheetÚnote_map© r   ú@/home/travis/build/python-excel/xlrd/tests/test_xlsx_comments.pyÚtest_excel_comments
   s
    	z$TestXlsxComments.test_excel_commentsc             C   sE   t  t d ƒ ƒ } | j d ƒ } | j } |  j | d j d ƒ d  S)Nztest_comments_excel.xlsxr   é   z1st line
2nd line)r   r   )r   r   r   r   r	   r   )r   r   r   r   r   r   r   Útest_excel_comments_multiline   s    	z.TestXlsxComments.test_excel_comments_multilinec             C   sE   t  t d ƒ ƒ } | j d ƒ } | j } |  j | d j d ƒ d  S)Nztest_comments_excel.xlsxr   r   zAuthor:
Two t elements)r   r   )r   r   r   r   r	   r   )r   r   r   r   r   r   r   Ú"test_excel_comments_two_t_elements   s    	z3TestXlsxComments.test_excel_comments_two_t_elementsc             C   sE   t  t d ƒ ƒ } | j d ƒ } | j } |  j | d j d ƒ d  S)Nztest_comments_excel.xlsxé   r   Ú )r   r   )r   r   r   r   r	   r   )r   r   r   r   r   r   r   Ú!test_excel_comments_no_t_elements    s    	z2TestXlsxComments.test_excel_comments_no_t_elementsc             C   s[   t  t d ƒ ƒ } | j d ƒ } | j } |  j t | ƒ d ƒ |  j | d j d ƒ d  S)Nztest_comments_gdocs.xlsxr   r   zJust a test)r   r   )r   r   r   r   r	   r
   r   )r   r   r   r   r   r   r   Útest_gdocs_comments'   s
    	z$TestXlsxComments.test_gdocs_commentsc             C   s}   t  t d ƒ ƒ } | j d ƒ } | j } |  j t | ƒ d ƒ |  j | d j d ƒ |  j t | j d ƒ j ƒ d ƒ d  S)Nztest_comments_excel_sheet2.xlsxr   zNote lives herer   )r   r   )r   r   r   r   r	   r
   r   )r   r   r   r   r   r   r   Ú%test_excel_comments_with_multi_sheets/   s    	z6TestXlsxComments.test_excel_comments_with_multi_sheetsN)	Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r   r   r      s   r   N)Úunittestr   Úxlrdr   Úbaser   r   r   r   r   r   Ú<module>   s   