OPSI.web2.test.test_fileupload module

class OPSI.web2.test.test_fileupload.MultipartTests(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

doTest(*args, **kwargs)
doTestError(boundary, data, expected_error)
testEmptyFilename()
testMissingContentDisposition()
testMultipleUpload()
testNormalUpload()
testRandomData()
testStupidFilename()
class OPSI.web2.test.test_fileupload.TestStream(mem, maxReturn=1000, start=0, length=None)

Bases: OPSI.web2.stream.SimpleStream

A stream that reads less data at a time than it could.

close()
read()
class OPSI.web2.test.test_fileupload.TestURLEncoded(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

doTest(*args, **kwargs)
test_parseInvalid()
test_parseValid()