This Page

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

The nova.tests.api.openstack.test_faults Module

class nova.tests.api.openstack.test_faults.FaultsXMLSerializationTestV11(methodName='runTest')

Bases: nova.test.TestCase

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

test_400_fault()
test_404_fault()
test_413_fault()
class nova.tests.api.openstack.test_faults.TestFaults(methodName='runTest')

Bases: nova.test.TestCase

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

test_400_fault_json()

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

test_400_fault_xml()

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

test_413_fault_json()

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

test_413_fault_xml()
test_fault_has_status_int()

Ensure the status_int is set correctly on faults

test_raise()

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

test_v10_xml_serializer()

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

test_v11_xml_serializer()

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