bgL pdZddlZddlZddlmZddlmZddlZdZ dZ dZ dZ d Z d Zd Zd Zd ZdS)z?Tests that the pytest plugin properly provides the "fs" fixtureN)OSType)Pausecr|dtjdsJdSN/var/data/xx1.txt create_fileospathexistsfss y/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pyfakefs/pytest_tests/pytest_plugin_test.pytest_fs_fixturer s6NN&''' 7>>- . ... ...cr|dtjdsJdSrr)fake_filesystems rtest_fs_fixture_aliasrs8 3444 7>>- . ... ...rc|d|dtjdsJtjdsJ||ksJdS)Nrz/var/data/xx2.txtr)rrs rtest_both_fixturesrsw 3444NN&''' 7>>- . ... . 7>>- . ... .  rctj}||jsJtj|jsJ|||jsJtj|jrJtj}||jrJtj|jsJ|tj|jrJtj|jsJdSN)tempfileNamedTemporaryFiler namer r pauseresumerfake_temp_filereal_temp_files rtest_pause_resumer!s 022N 99^( ) ))) ) 7>>.- . ... .HHJJJ 99^( ) ))) )w~~n12222 2022Nyy,---- - 7>>.- . ... .IIKKKw~~n12222 2 7>>.- . ... ...rctj}||jsJtj|jsJt |5||jsJtj|jrJtj}||jrJtj|jsJ dddn #1swxYwYtj|jrJtj|jsJdSr)rrr rr r rrs r test_pause_resume_contextmanagerr#+sl022N 99^( ) ))) ) 7>>.- . ... . r33yy,-----7>>."566666!46699^011111w~~n1222222 333333333333333 w~~n12222 2 7>>.- . ... ...s%BD  DDcd}t|d5}|ddddn #1swxYwYtjj|}|dksJdS)Nzfoo.txtwbar)openwritepyfakefs pytest_testsio InputStreamread)rfilepathfstreams rtest_use_own_io_moduler19sH h    " % 1 1( ; ;F ;;==E ! ! ! ! ! !s 599ctj|_tjt jsJdSr)rWINDOWSr r r r gettempdirr s rtest_switch_to_windowsr5Bs4 NBE 7>>(-// 0 000 000rctj|_tjt jsJdSr)rLINUXr r r rr4r s rtest_switch_to_linuxr8G4 LBE 7>>(-// 0 000 000rctj|_tjt jsJdSr)rMACOSr r r rr4r s rtest_switch_to_macosr<Lr9r)__doc__r rpyfakefs.fake_filesystemr!pyfakefs.fake_filesystem_unittestrpyfakefs.pytest_tests.ior)rrrr!r#r1r5r8r<rrrBsEE ++++++333333/// /// !!! / / / / / /"""111 111 11111r