Current File : //opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyo |
�
��Wc @ s� d Z d d l Z d d l Z d d l m Z d d l m Z d e f d � � YZ d e j f d � � YZ d � Z
e d
k r� e
� n d S( s^
These tests only check url parsing for now.
We don't want to require the 'network' resource.
i����N( t SimpleHTTPRequestHandler( t test_supportt SocketlessRequestHandlerc B s e Z d � Z RS( c C s d S( N( ( t self( ( 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.pyR s t SimpleHTTPRequestHandlerTestCasec B s) e Z d Z d � Z d � Z d � Z RS( s Test url parsing c C s: t j � | _ t j j | j d � | _ t � | _ d S( Nt filename( t ost getcwdt
translatedt patht joinR t handler( R ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyt setUp s c C ss | j j d � } | j | | j � | j j d � } | j | | j � | j j d � } | j | | j � d S( Ns /filenames /filename?foo=bars /filename?a=b&spam=eggs#zot( R t translate_patht assertEqualR ( R R ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyt test_queryArguments s c C sN | j j d � } | j | | j � | j j d � } | j | | j � d S( Ns
//filenames //filename?foo=bar( R R R R ( R R ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyt test_startWithDoubleSlash s ( R R t __doc__R R R ( ( ( ss /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_SimpleHTTPServer.pyR s c C s t j t � d S( N( R t 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% s t __main__( R R t unittestt SimpleHTTPServerR t testR R t TestCaseR R R ( ( ( 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