The nova.tests.test_exception Module

class EC2APIErrorTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_return_valid_error()
class FakeNotifier

Bases: object

Acts like the nova.notifier.api module.

ERROR = 88
notify(context, publisher, event, priority, payload)
class NovaExceptionTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_default_error_code()
test_default_error_msg()
test_default_error_msg_with_kwargs()
test_error_code_from_kwarg()
test_error_msg()
test_error_msg_exception_with_kwargs()
test_format_message_local()
test_format_message_remote()
test_format_message_remote_error()
class WrapExceptionTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_wrap_exception_good_return()
test_wrap_exception_throws_exception()
test_wrap_exception_with_notifier()
test_wrap_exception_with_notifier_defaults()
bad_function_exception(blah='a', boo='b', context=None)
good_function()

Previous topic

The nova.tests.test_deprecated Module

Next topic

The nova.tests.test_fakelibvirt Module

This Page