Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_httpservers.SimpleHTTPRequestHandlerTestCase Class Reference

List of all members.

Public Member Functions

def setUp
def test_query_arguments
def test_start_with_double_slash

Public Attributes

 translated
 handler

Detailed Description

Test url parsing 

Definition at line 599 of file test_httpservers.py.


Member Function Documentation

Definition at line 601 of file test_httpservers.py.

00601 
00602     def setUp(self):
00603         self.translated = os.getcwd()
00604         self.translated = os.path.join(self.translated, 'filename')
00605         self.handler = SocketlessRequestHandler()

Here is the caller graph for this function:

Definition at line 606 of file test_httpservers.py.

00606 
00607     def test_query_arguments(self):
00608         path = self.handler.translate_path('/filename')
00609         self.assertEqual(path, self.translated)
00610         path = self.handler.translate_path('/filename?foo=bar')
00611         self.assertEqual(path, self.translated)
00612         path = self.handler.translate_path('/filename?a=b&spam=eggs#zot')
00613         self.assertEqual(path, self.translated)

Here is the call graph for this function:

Definition at line 614 of file test_httpservers.py.

00614 
00615     def test_start_with_double_slash(self):
00616         path = self.handler.translate_path('//filename')
00617         self.assertEqual(path, self.translated)
00618         path = self.handler.translate_path('//filename?foo=bar')
00619         self.assertEqual(path, self.translated)
00620 

Here is the call graph for this function:


Member Data Documentation

Definition at line 604 of file test_httpservers.py.

Definition at line 602 of file test_httpservers.py.


The documentation for this class was generated from the following file: