<s> """<STR_LIT>""" <EOL> import os , unittest <EOL> from SimpleHTTPServer import SimpleHTTPRequestHandler <EOL> from test import test_support <EOL> class SocketlessRequestHandler ( SimpleHTTPRequestHandler ) : <EOL> def __init__ ( self ) : <EOL> pass <EOL> class SimpleHTTPRequestHandlerTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . translated = os . getcwd ( ) <EOL> self . translated = os . path . join ( self . translated , '<STR_LIT:filename>' ) <EOL> self . handler = SocketlessRequestHandler ( ) <EOL> def test_queryArguments ( self ) : <EOL> path = self . handler . translate_path ( '<STR_LIT>' ) <EOL> self . assertEqual ( path , self . translated ) <EOL> path = self . handler . translate_path ( '<STR_LIT>' ) <EOL> self . assertEqual ( path , self . translated ) <EOL> path = self . handler . translate_path ( '<STR_LIT>' ) <EOL> self . assertEqual ( path , self . translated ) <EOL> def test_startWithDoubleSlash ( self ) : <EOL> path = self . handler . translate_path ( '<STR_LIT>' ) <EOL> self . assertEqual ( path , self . translated ) <EOL> path = self . handler . translate_path ( '<STR_LIT>' ) <EOL> self . assertEqual ( path , self . translated ) <EOL> def test_main ( ) : <EOL> test_support . run_unittest ( SimpleHTTPRequestHandlerTestCase ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
