The nova.tests.test_exception Module

class EC2APIErrorTestCase(*args, **kwargs)

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(*args, **kwargs)

Bases: nova.test.TestCase

test_cleanse_dict()
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(*args, **kwargs)

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(self, context, extra, blah='a', boo='b', zoo=None)
good_function(self, context)

Previous topic

The nova.tests.test_driver Module

Next topic

The nova.tests.test_fakelibvirt Module

This Page