Current File : //opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyo
�
��Wc@s�dZddlZddlZddlmZddlmZdefd��YZdejfd��YZ	d	�Z
ed
kr�e
�ndS(s^
These tests only check url parsing for now.
We don't want to require the 'network' resource.
i����N(tSimpleHTTPRequestHandler(ttest_supporttSocketlessRequestHandlercBseZd�ZRS(cCsdS(N((tself((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyt__init__s(t__name__t
__module__R(((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyRst SimpleHTTPRequestHandlerTestCasecBs)eZdZd�Zd�Zd�ZRS(s Test url parsing cCs:tj�|_tjj|jd�|_t�|_dS(Ntfilename(tostgetcwdt
translatedtpathtjoinRthandler(R((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pytsetUpscCss|jjd�}|j||j�|jjd�}|j||j�|jjd�}|j||j�dS(Ns	/filenames/filename?foo=bars/filename?a=b&spam=eggs#zot(Rttranslate_pathtassertEqualR(RR((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyttest_queryArgumentsscCsN|jjd�}|j||j�|jjd�}|j||j�dS(Ns
//filenames//filename?foo=bar(RRRR(RR((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyttest_startWithDoubleSlashs(RRt__doc__RRR(((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyRs		cCstjt�dS(N(Rtrun_unittestR(((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyt	test_main%st__main__(RR	tunittesttSimpleHTTPServerRttestRRtTestCaseRRR(((ss/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyt<module>s