bg dZddlZddlZddlZddlmZGddejZedkrej dSdS)z$Test for glob using fake_filesystem.N)fake_filesystem_unittestcJeZdZdZdZdZdZdZdZdZ dZ d Z d Z d S) FakeGlobUnitTestcH|d}|j||jd|z|jd|z|jd|z|jddS)Nz./xyzzyz %s/subdirz %s/subdir2z %s/subfile[Temp]) setUpPyfakefsfs create_dir create_file)self directorys y/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pyfakefs/tests/fake_filesystem_glob_test.pysetUpzFakeGlobUnitTest.setUps   9%%% ;2333 <)3444 L94555 H%%%%%cV|tjdgdS)N assertEqualglobr s rtest_glob_emptyz FakeGlobUnitTest.test_glob_empty"s& 2+++++rc.d}|tj|dtj|dtj|dgt t jddS)N/xyzzysubdirsubdir2subfilez/xyzzy/*rospathjoinsortedrr basedirs rtest_glob_starzFakeGlobUnitTest.test_glob_star%~  Wh// Wi00 Wi00  49Z(( ) )      rc|dgtjd|dgtjddS)Nrz/xyzzy/subfilerrs rtest_glob_exactz FakeGlobUnitTest.test_glob_exact0sO (TYx%8%8999 *+TY7G-H-HIIIIIrc.d}|tj|dtj|dtj|dgt t jddS)Nrrrrz/x?zz?/*rr"s rtest_glob_questionz#FakeGlobUnitTest.test_glob_question4r%rc|dgtjd|dgtjddS)Nrz /xyzzy/subdirrrs rtest_glob_no_magicz#FakeGlobUnitTest.test_glob_no_magic?sM (TYx%8%8999 /*DIo,F,FGGGGGrcV|gtjddS)N nonexistentrrs rtest_non_existent_pathz'FakeGlobUnitTest.test_non_existent_pathCs( TY}5566666rcX|dgtjddS)Nz/[Temp]z/*emp*rrs rtest_magic_dirzFakeGlobUnitTest.test_magic_dirFs* )di&9&9:::::rcZ|dgtjdddS)Nr/z*Tem*)rrglob1rs r test_glob1zFakeGlobUnitTest.test_glob1Is, (TZW%=%=>>>>>rc|tjd|tjddS)N[a) assertTruer has_magic assertFalsers rtest_has_magiczFakeGlobUnitTest.test_has_magicLsB s++,,, ,,-----rN) __name__ __module__ __qualname__rrr$r'r)r+r.r0r4r;rrrrs&&&,,,    JJJ    HHH777;;;???.....rr__main__) __doc__rrunittestpyfakefsrTestCaserr<mainr?rrrFs+* ------6.6.6.6.6./86.6.6.r zHMOOOOOr