OPSI.web2.test.test_static module¶
-
class
OPSI.web2.test.test_static.
TestData
(methodName='runTest')¶ Bases:
OPSI.web2.test.test_server.BaseCase
-
setUp
()¶
-
test_dataState
()¶ Test the internal state of the Data object
-
test_etag
()¶ Test that we can get an ETag
-
test_render
()¶ Test that the result from Data.render is acceptable, including the response code, the content-type header, and the actual response body itself.
-
-
class
OPSI.web2.test.test_static.
TestFileSaver
(methodName='runTest')¶ Bases:
OPSI.web2.test.test_server.BaseCase
-
assertInResponse
(response, expected_response, failure=False)¶
-
fileNameFromResponse
(response)¶
-
setUpClass
()¶
-
test_compareFileContents
()¶
-
test_enforcesMaxBytes
()¶
-
test_enforcesMimeType
()¶
-
test_invalidField
()¶
-
test_reportFileSave
()¶
-
uploadFile
(fieldname, filename, mimetype, content, resrc=None, host='foo', path='/')¶
-