Previous topic

The cinder.tests.test_test_utils Module

Next topic

The cinder.tests.test_versions Module

This Page

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

The cinder.tests.test_utils Module

class AuditPeriodTest(methodName='runTest')

Bases: cinder.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 ExecuteTestCase(methodName='runTest')

Bases: cinder.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: cinder.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_read_cached_file()
test_read_file_as_root()
test_read_modified_cached_file()
test_safe_parse_xml()
test_service_is_up()
test_strcmp_const_time()
test_temporary_chown()
test_xhtml_escape()
class GetFromPathTestCase(methodName='runTest')

Bases: cinder.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: cinder.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: cinder.test.TestCase

Unit test for utils.monkey_patch().

setUp()
test_monkey_patch()