
    i*                     J    d Z ddlZddlmc mZ ddlmZ ddl	Z	 G d d      Z
y)ub   task-1110.1: 작업 완료 확인 테스트

완료 파일이 생성되었는지 확인합니다.
    N)Pathc                        e Zd ZdZddZddZy)TestTaskCompletionu   작업 완료 테스트.Nc                    t        d      }|j                  } |       }|st        j                  d|       dz   dt	        j
                         v st        j                  |      rt        j                  |      ndt        j                  |      t        j                  |      dz  }t        t        j                  |            dx}}y)u"   완료 파일이 존재해야 함.//home/jay/workspace/teams/dev8/task-1110.1.doneu   완료 파일 없음: zC
>assert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.exists
}()
}	done_file)py0py2py4N)
r   exists
@pytest_ar_format_assertmsg@py_builtinslocals_should_repr_global_name	_safereprAssertionError_format_explanation)selfr   @py_assert1@py_assert3@py_format5s        8/home/jay/workspace/tests/test_task_1110_1_completion.pytest_done_file_existsz(TestTaskCompletion.test_done_file_exists   s~    JK	G!G!GG%;I;#GGGGGGGyGGGyGGGGGG!GGGGGG    c                    t        d      }|j                         r|j                         j                         }d}||k(  }|st	        j
                  d|fd||f      dt        j                         v st	        j                  |      rt	        j                  |      ndt	        j                  |      dz  }t	        j                  d|       dz   d	|iz  }t        t	        j                  |            d
x}}y
y
)u,   완료 파일 내용이 'done'이어야 함.r   done)==)z%(py0)s == %(py3)scontent)r	   py3u*   완료 파일 내용이 'done'이 아님: z
>assert %(py5)spy5N)r   r   	read_textstripr   _call_reprcomparer   r   r   r   r   r   r   )r   r   r   @py_assert2r   @py_format4@py_format6s          r   test_done_file_contentz)TestTaskCompletion.test_done_file_content   s    JK	))+113G$\7f$\\\7f\\\\\\7\\\7\\\f\\\(RSZR[&\\\\\\\ r   )returnN)__name__
__module____qualname____doc__r   r(    r   r   r   r      s    "H
]r   r   )r-   builtinsr   _pytest.assertion.rewrite	assertionrewriter   pathlibr   pytestr   r.   r   r   <module>r5      s#   
    ] ]r   