OPSI.web2.test.test_http module

class OPSI.web2.test.test_http.AbstractServerTestMixin
testBasicWorkingness(*args, **kwargs)
testLingeringClose(*args, **kwargs)
type = None
class OPSI.web2.test.test_http.CoreHTTPTestCase(methodName='runTest')

Bases: OPSI.web2.test.test_http.HTTPTests

testConnectionCloseRequested()
testDisallowPersistentConnections()
testExtraCRLFs()
testHTTP0_9(nouri=False)
testHTTP0_9_nouri()
testHTTP1_0()
testHTTP1_0_keepalive()
testHTTP1_1_chunking()
testHTTP1_1_expect_continue()
testHTTP1_1_expect_continue_early_reply()
testHTTP1_1_pipelining()
testHeaderContinuation()
testIgnoreBogusContentLength()
testTimeout_betweenRequests()
testTimeout_immediate()
testTimeout_inRequest()
class OPSI.web2.test.test_http.ErrorTestCase(methodName='runTest')

Bases: OPSI.web2.test.test_http.HTTPTests

assertStartsWith(first, second, msg=None)
checkError(cxn, code)
testBadProtocolVersion()
testBadProtocolVersion2()
testBadRequest()
testChunkingError1()
testChunkingError2()
testChunkingError3()
testLineTooLong()
testLineTooLong2()
testNoColon()
testTEWithoutChunked()
testTooManyHeaders()
testUnsupportedTE()
testWrongProtocol()
testWrongProtocolVersion()
class OPSI.web2.test.test_http.HTTPTests(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

assertDone(cxn, done=True)
compareResult(cxn, cmds, data)
connect(logFile=None, **protocol_kwargs)
iterate(cxn)
class OPSI.web2.test.test_http.IfRangeTestCase(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

testIfRange()
class OPSI.web2.test.test_http.LoopbackRelay(target, logFile=None)

Bases: twisted.protocols.loopback.LoopbackRelay

loseWriteConnection()
pauseProducing()
resumeProducing()
stopProducing()
class OPSI.web2.test.test_http.PipelinedErrorTestCase(methodName='runTest')

Bases: OPSI.web2.test.test_http.ErrorTestCase

checkError(cxn, code)
connect()
class OPSI.web2.test.test_http.PreconditionTestCase(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

checkPreconditions(request, response, expectedResult, expectedCode, **kw)
testIfMatch()
testIfModifiedSince()
testIfNoneMatch()
testIfUnmodifiedSince()
testNoResponse()
testWithoutHeaders()
class OPSI.web2.test.test_http.SSLServerTest(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase, OPSI.web2.test.test_http.AbstractServerTestMixin

setUp()
tearDown()
testLingeringClose()
type = 'ssl'
class OPSI.web2.test.test_http.SimpleFactory(requestFactory, maxRequests=600, **kwargs)

Bases: OPSI.web2.channel.http.HTTPFactory

buildProtocol(addr)
class OPSI.web2.test.test_http.SimpleRequest(chanRequest, command, path, version, contentLength, headers)

Bases: OPSI.web2.http.Request

process()
class OPSI.web2.test.test_http.TCPServerTest(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase, OPSI.web2.test.test_http.AbstractServerTestMixin

setUp()
tearDown()
type = 'tcp'
class OPSI.web2.test.test_http.TestClient

Bases: twisted.internet.protocol.Protocol

connectionLost(reason)
data = ''
dataReceived(data)
done = False
loseConnection()
write(data)
class OPSI.web2.test.test_http.TestConnection
fakeCallLater(secs, f)
class OPSI.web2.test.test_http.TestRequest(*args, **kwargs)

Bases: OPSI.web2.http.Request

connectionLost(reason)
handleContentChunk(data)
handleContentComplete()
process()
class OPSI.web2.test.test_http.TestResponse

Bases: object

code = 200
finish()
headers = None
write(data)
OPSI.web2.test.test_http.deferLater(secs)