ó {G_Tc@sÇdZddlZddlZddlZddlZddlmZmZmZm Z edde ƒZ ej dkr‹ej dƒ‚ndejfd „ƒYZd „Zed krÃeƒndS( s0 Tests for commands module Nick Mathewson iÿÿÿÿN(t run_unittestt reap_childrent import_moduletcheck_warningstcommandst deprecatedtposixs!Not posix; skipping test_commandst CommandTestscBseZd„Zd„ZRS(cCsª|jtjdƒdƒ|jtjdƒdƒd}zNtjƒ}tjj |dƒ}tjd|ƒ\}}|j |dƒWd|dk r¥tj |ƒnXdS(Ns echo xyzzytxyzzyitfooscat (iR( t assertEqualRt getoutputtgetstatusoutputtNonettempfiletmkdtemptostpathtjointassertNotEqualtrmdir(tselftdirtnametstatustoutput((s./usr/local/lib/python2.7/test/test_commands.pyttest_getoutputs  c CsKd}tdtfƒ-|jtj|tjdƒtjƒƒWdQXdS(Ns7d......... # It is a directory. [.+@]? # It may have special attributes. \s+\d+ # It has some number of links. [^/]* # Skip user, group, size, and date. /\. # and end with the name of the file. s$.*commands.getstatus.. is deprecateds/.(RtDeprecationWarningt assertTruetretmatchRt getstatustVERBOSE(Rtpat((s./usr/local/lib/python2.7/test/test_commands.pyttest_getstatus,s (t__name__t __module__RR"(((s./usr/local/lib/python2.7/test/test_commands.pyRs cCsttƒtƒdS(N(RRR(((s./usr/local/lib/python2.7/test/test_commands.pyt test_mainDs t__main__(t__doc__tunittestRRRttest.test_supportRRRRtTrueRRtSkipTesttTestCaseRR%R#(((s./usr/local/lib/python2.7/test/test_commands.pyts $",