The nova.tests.test_utils Module

class AuditPeriodTest(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_day()
test_day_with_offset_after_current()
test_day_with_offset_before_current()
test_hour()
test_hour_with_offset_after_current()
test_hour_with_offset_before_current()
test_month()
test_month_with_offset_after_current()
test_month_with_offset_before_current()
test_year()
test_year_with_offset_after_current()
test_year_with_offset_before_current()
class DiffDict(methodName='runTest')

Bases: nova.test.TestCase

Unit tests for diff_dict()

test_changed_key()
test_new_key()
test_no_change()
test_removed_key()
class EnsureTree(methodName='runTest')

Bases: nova.test.TestCase

test_ensure_tree()
class ExecuteTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_check_exit_code_boolean()
test_no_retry_on_success()
test_retry_on_failure()
test_unknown_kwargs_raises_error()
class GenericUtilsTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_bool_from_str()
test_generate_glance_url()
test_generate_password()
test_hash_file()
test_hostname_sanitize_characters()
test_hostname_sanitize_dashes()
test_hostname_sanitize_periods()
test_hostname_translate()
test_hostname_unicode_sanitization()
test_parse_server_string()
test_read_cached_file()
test_read_file_as_root()
test_read_modified_cached_file()
test_service_is_up()
test_strcmp_const_time()
test_temporary_chown()
test_xhtml_escape()
class GetFromPathTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_accepts_dictionaries()
test_bad_xpath()
test_does_select()
test_flattens_lists()
test_real_failure1()
test_tolerates_nones()
class IsUUIDLikeTestCase(methodName='runTest')

Bases: nova.test.TestCase

assertUUIDLike(val, expected)
test_gen_valid_uuid()
test_good_uuid()
test_integer_passed()
test_non_uuid_string_passed()
test_non_uuid_string_passed2()
class MonkeyPatchTestCase(methodName='runTest')

Bases: nova.test.TestCase

Unit test for utils.monkey_patch().

setUp()
test_monkey_patch()
class TestFileLocks(methodName='runTest')

Bases: nova.test.TestCase

test_concurrent_green_lock_succeeds()

Verify spawn_n greenthreads with two locks run concurrently.

Previous topic

The nova.tests.test_test_utils Module

Next topic

The nova.tests.test_versions Module

This Page