a  ze@sddlZddlmZddlmZddlmZGdddejejZGdd d Z Gd d d e ejZ Gd d d e ej ejZ e dkredS)N) resources)data01)utilc@seZdZddZdS) CommonTestscCs0t||Wdn1s"0YdS)N)rpath)selfpackagerr Q/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_importlib/test_path.pyexecute szCommonTests.executeN)__name__ __module__ __qualname__r r r r r rsrc@seZdZddZdS) PathTestsc Cst|jdj}||jdt||jddd}|}Wdn1sT0Y| d|Wdn1s~0YdS)N utf-8.filerzutf-8)encodingzHello, UTF-8 world! ) rrdataZ assertTruenameendswithrepropenreadZ assertEqual)rrfiletextr r r test_readings &zPathTests.test_readingN)r rrrr r r r rsrc@seZdZeZdS) PathDiskTestsN)r rrrrr r r r rsrc@seZdZddZdS) PathZipTestscCs:t|jd}|Wdn1s,0YdS)Nr)rrrunlink)rrr r r test_remove_in_context_manager sz+PathZipTests.test_remove_in_context_managerN)r rrr r r r r rsr__main__)Zunittest importlibrrrZCommonResourceTestsZTestCaserrrZZipSetuprr mainr r r r s