glance.tests.unit.common package¶
Subpackages¶
Submodules¶
glance.tests.unit.common.test_client module¶
glance.tests.unit.common.test_config module¶
glance.tests.unit.common.test_exception module¶
glance.tests.unit.common.test_location_strategy module¶
-
class
glance.tests.unit.common.test_location_strategy.
TestLocationOrderStrategyModule
(*args, **kwargs)[source]¶ Bases:
glance.tests.unit.base.IsolatedUnitTest
Test routines in glance.common.location_strategy.location_order
-
class
glance.tests.unit.common.test_location_strategy.
TestLocationStrategy
(*args, **kwargs)[source]¶ Bases:
glance.tests.unit.base.IsolatedUnitTest
Test routines in glance.common.location_strategy
-
class
glance.tests.unit.common.test_location_strategy.
TestStoreTypeStrategyModule
(*args, **kwargs)[source]¶ Bases:
glance.tests.unit.base.IsolatedUnitTest
Test routines in glance.common.location_strategy.store_type
glance.tests.unit.common.test_property_utils module¶
-
class
glance.tests.unit.common.test_property_utils.
TestPropertyRulesWithPolicies
(*args, **kwargs)[source]¶
-
class
glance.tests.unit.common.test_property_utils.
TestPropertyRulesWithRoles
(*args, **kwargs)[source]¶
glance.tests.unit.common.test_rpc module¶
-
class
glance.tests.unit.common.test_rpc.
FakeResource
[source]¶ Bases:
object
Fake resource defining some methods that will be called later by the api.
glance.tests.unit.common.test_scripts module¶
glance.tests.unit.common.test_semver module¶
glance.tests.unit.common.test_swift_store_utils module¶
glance.tests.unit.common.test_timeutils module¶
glance.tests.unit.common.test_utils module¶
-
class
glance.tests.unit.common.test_utils.
TestUtils
(*args, **kwargs)[source]¶ Bases:
glance.tests.utils.BaseTestCase
Test routines in glance.utils
-
test_cooperative_reader_of_iterator
()[source]¶ Ensure cooperative reader supports iterator backends too
-
test_cooperative_reader_of_iterator_stop_iteration_err
()[source]¶ Ensure cooperative reader supports iterator backends too
-
glance.tests.unit.common.test_wsgi module¶
-
class
glance.tests.unit.common.test_wsgi.
TestHelpers
(*args, **kwargs)[source]¶ Bases:
glance.tests.utils.BaseTestCase
-
test_data_passed_properly_through_headers
()[source]¶ Verifies that data is the same after being passed through headers
-
test_headers_are_unicode
()[source]¶ Verifies that the headers returned by conversion code are unicode.
Headers are passed via http in non-testing mode, which automatically converts them to unicode. Verifying that the method does the conversion proves that we aren’t passing data that works in tests but will fail in production.
-