def testEmptyRequestConvenientlyTranslatedToSlash(self):
     self.assertEquals('GET / HTTP/1.0\r\n', _requestLine('GET', ''))
     self.assertEquals('POST / HTTP/1.0\r\n', _requestLine('POST', ''))
Beispiel #2
0
 def testEmptyRequestConvenientlyTranslatedToSlash(self):
     self.assertEquals('GET / HTTP/1.0\r\n', _requestLine('GET', ''))
     self.assertEquals('POST / HTTP/1.0\r\n', _requestLine('POST', ''))
 def testRequestLine(self):
     self.assertEquals('GET / HTTP/1.0\r\n', _requestLine('GET', '/'))
     self.assertEquals('POST / HTTP/1.0\r\n', _requestLine('POST', '/'))
Beispiel #4
0
 def testRequestLine(self):
     self.assertEquals('GET / HTTP/1.0\r\n', _requestLine('GET', '/'))
     self.assertEquals('POST / HTTP/1.0\r\n', _requestLine('POST', '/'))