keystone.tests.unit.common package

Submodules

keystone.tests.unit.common.test_ldap module

class keystone.tests.unit.common.test_ldap.DnCompareTest(*args, **kwargs)[source]

Bases: keystone.tests.core.BaseTestCase

Tests for the DN comparison functions in keystone.common.ldap.core.

test_ava_different()[source]
test_ava_equal_complex()[source]
test_ava_equal_same()[source]
test_dn_diff_length()[source]
test_dn_equal_rdns()[source]
test_dn_parsed_dns()[source]
test_dn_same()[source]
test_prep()[source]
test_prep_insignificant()[source]
test_prep_insignificant_pre_post()[source]
test_prep_lowercase()[source]
test_rdn_attr_type_alias()[source]
test_rdn_attr_type_case_diff()[source]
test_rdn_diff_length()[source]
test_rdn_multi_ava_diff_order()[source]
test_rdn_multi_ava_diff_type()[source]
test_rdn_multi_ava_same_order()[source]
test_rdn_same()[source]
test_startswith_descendant()[source]
test_startswith_not_parent()[source]
test_startswith_parent()[source]
test_startswith_parsed_dns()[source]
test_startswith_same()[source]
test_startswith_under_child()[source]
class keystone.tests.unit.common.test_ldap.SslTlsTest(*args, **kwargs)[source]

Bases: keystone.tests.core.TestCase

Tests for the SSL/TLS functionality in keystone.common.ldap.core.

test_certdir_trust_ldaps()[source]
test_certdir_trust_tls()[source]
test_certfile_trust_ldaps()[source]
test_certfile_trust_tls()[source]

keystone.tests.unit.common.test_sql_core module

class keystone.tests.unit.common.test_sql_core.TestModel(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.ModelDictMixin

id
text
class keystone.tests.unit.common.test_sql_core.TestModelDictMixin(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

test_creating_a_dict_from_a_model_instance()[source]
test_creating_a_dict_from_a_model_instance_that_has_extra_attrs()[source]
test_creating_a_model_instance_from_a_dict()[source]
test_creating_a_model_instance_from_an_invalid_dict()[source]

keystone.tests.unit.common.test_utils module

class keystone.tests.unit.common.test_utils.TestPasswordHashing(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

setUp()[source]
test_that_a_hash_can_not_be_validated_against_a_hash()[source]
test_that_an_incorrect_password_fails_to_validate()[source]
test_that_we_can_verify_a_password_against_a_hash()[source]

Module contents