taucmdr.cf.storage.tests.test_levels module¶
Test functions.
Functions used for unit tests of levels.py.
- class taucmdr.cf.storage.tests.test_levels.LevelsTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for the storage levels with and without a system level.
- _build_level_result(backend, user, system, install_in_user)[source]¶
Run
_BUILD_LEVELwith a source archive in the user level, and optionally an installation there.- Returns:
The package UID and the parsed result.
- Return type:
- _classSetupFailed = False¶
- _class_cleanups = []¶
- _make_readonly(path)[source]¶
Remove write permission from path and everything under it until the test ends.
- test_build_level_only()[source]¶
Inside build_level, packages are found, downloaded and installed only in the chosen level.
- test_import_computes_no_level()[source]¶
Importing the experiment model doesn’t look for a writable storage level.
- test_missing_system_prefix()[source]¶
A system prefix that doesn’t exist is an empty level that nothing writes to or creates.