The nova.tests.test_utils Module

class AuditPeriodTest(*args, **kwargs)

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

Bases: nova.test.TestCase

test_string_conversions()
class DiffDict(*args, **kwargs)

Bases: nova.test.TestCase

Unit tests for diff_dict().

test_changed_key()
test_new_key()
test_no_change()
test_removed_key()
class ExecuteTestCase(*args, **kwargs)

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

Bases: nova.test.TestCase

test_bool_from_str()
test_generate_password()
test_get_shortened_ipv6()
test_get_shortened_ipv6_cidr()
test_hash_file()
test_hostname_sanitize_characters()
test_hostname_sanitize_dashes()
test_hostname_sanitize_periods()
test_hostname_translate()
test_hostname_unicode_sanitization()
test_is_valid_boolstr()
test_is_valid_ipv4()
test_is_valid_ipv6()
test_is_valid_ipv6_cidr()
test_parse_server_string()
test_read_cached_file()
test_read_file_as_root()
test_read_modified_cached_file()
test_temporary_chown()
test_xhtml_escape()
class GetFromPathTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_accepts_dictionaries()
test_bad_xpath()
test_does_select()
test_flattens_lists()
test_real_failure1()
test_tolerates_nones()
class IntLikeTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_is_int_like()
class LastBytesTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test the last_bytes() utility method.

setUp()
test_read_all()
test_seek_too_far_real_file()
test_truncated()
class MetadataToDictTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_dict_to_metadata()
test_dict_to_metadata_empty()
test_metadata_to_dict()
test_metadata_to_dict_empty()
class MkfsTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_mkfs()
test_mkfs_with_label()
class MonkeyPatchDefaultTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Unit test for default monkey_patch_modules value.

setUp()
test_monkey_patch_default_mod()
class MonkeyPatchTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Unit test for utils.monkey_patch().

setUp()
test_monkey_patch()
class StringLengthTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_check_string_length()
class WrappedCodeTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test the get_wrapped_function utility method.

test_double_wrapped()
test_single_wrapped()
test_triple_wrapped()

Previous topic

The nova.tests.test_test_utils Module

Next topic

The nova.tests.test_versions Module

This Page