bgC ~ddlZddlmZddlmZddlmZddlmZm Z m Z m Z ddl m Z ddlmZGd d e ZdS) N) ShouldAssert)Mock)mkdtemp)Replacer TempDirectorycomparetempdir)TestCase)rmtreeceZdZedZedZedZeddZdZedZ ed Z d Z d S) TestTempDirc|dd|dd|ddS)N somethingstuff.svnrrwriterselfds p/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/testfixtures/tests/test_tempdir.py test_simplezTestTempDir.test_simplesO  X&&& !!!      cddg}||dgzd||dgzd||ddS)Nsomethingrrrr)pathexpectedr)rrsubdirs r test_subdirszTestTempDir.test_subdirssj'"  }$h/// x*** v)      rc|ddtd5|ddgddddS#1swxYwYdS)Nrrz\sequence not as expected: same: () expected: ('.svn', 'something') actual: ('something',)r)rrrrs r test_not_samezTestTempDir.test_not_same!s  X&&&     - - IIv{+ , , , - - - - - - - - - - - - - - - - - -sA  AA)r)ignorec|dd|dd|dgdS)Nrrrrrs r test_ignorezTestTempDir.test_ignore3sD  X&&& !!! ;-     rct} t}t}||_|d||t j|| |j td}| |j tt j |g|||j | t j||t j|rt|dSdS#|t j|rt|wwxYw)N"testfixtures.tempdirectory.mkdtempc^|dd|dgdS)Nrrrrs r test_methodz6TestTempDir.test_cleanup_properly..test_methodEs0 X... ;-(((((r)rrr return_valuereplace assertTrueosrexists assertFalsecalledr rlistdirrestorer )rrmrr,s rtest_cleanup_properlyz!TestTempDir.test_cleanup_properly9s{ JJ A AAN II:A > > > OOBGNN1-- . . .   QX & & & YY ) )Y )   QX & & & BJqMM2 & & & KMMM OOAH % % %   RW^^A.. / / / IIKKKw~~a   q    IIKKKw~~a   q  s D.FAG c.t|jdSN)r rrs r'test_cleanup_test_okay_with_deleted_dirz3TestTempDir.test_cleanup_test_okay_with_deleted_dirXsqvrcV|t|tdSr:)r/ isinstancerrs r$test_decorator_returns_tempdirectoryz0TestTempDir.test_decorator_returns_tempdirectory\s&  1m4455555rcBt5}t}|d||d|tdd}|||jddddS#1swxYwYdS)Nr)z!testfixtures.tempdirectory.rmtreefoo)rc0t|jddS)Nr@)rrr+s rr,zFTestTempDir.test_dont_create_or_cleanup_with_path..test_methodhs&&&&&r)rrr.r r2r3)rr6r7r,s r%test_dont_create_or_cleanup_with_pathz1TestTempDir.test_dont_create_or_cleanup_with_pathbs ZZ '1A II:A > > > II91 = = = %  ' '!  ' KMMM   QX & & & ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' 'sA8BBBN) __name__ __module__ __qualname__r rr"r$r'r8r;r>rBrrrr s WYYY WYYY WYY--Y-" WJ!! ! > WYYY WYY66Y6 ' ' ' ' 'rr)r0testfixtures.shouldraisertestfixtures.mockrtempfiler testfixturesrrrr unittestr r rrFrrrLs 111111""""""BBBBBBBBBBBBb'b'b'b'b'(b'b'b'b'b'r