Previous topic

The cinder.tests.api.openstack.test_common Module

Next topic

The cinder.tests.api.openstack.test_wsgi Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.tests.api.openstack.test_faults Module

class FaultsXMLSerializationTestV11(methodName='runTest')

Bases: cinder.test.TestCase

Tests covering cinder.api.openstack.faults:Fault class.

test_400_fault()
test_404_fault()
test_413_fault()
class TestFaults(methodName='runTest')

Bases: cinder.test.TestCase

Tests covering cinder.api.openstack.faults:Fault class.

test_400_fault_json()

Test fault serialized to JSON via file-extension and/or header.

test_413_fault_json()

Test fault serialized to JSON via file-extension and/or header.

test_fault_has_status_int()

Ensure the status_int is set correctly on faults

test_raise()

Ensure the ability to raise Fault in WSGI-ified methods.

test_raise_403()

Ensure the ability to raise Fault in WSGI-ified methods.

test_xml_serializer()

Ensure that a v1.1 request responds with a v1 xmlns