summaryrefslogtreecommitdiff
path: root/tests/unittests/test_util.py
AgeCommit message (Collapse)Author
2015-01-26Repair the Python 2.6 tests.Barry Warsaw
2015-01-26Trunk merged and ported.Barry Warsaw
2015-01-26Down to it.Barry Warsaw
2015-01-26More test repairs.Barry Warsaw
2015-01-22Conversion from mocker to mock completed.Barry Warsaw
2015-01-22More test ports from mocker to mock.Barry Warsaw
2015-01-22Port test__init__.py to unittest.mock.Barry Warsaw
2015-01-21Use either syspath or dmidecode based on the availability.Ben Howard
2015-01-21Fix file modes to be Python 2/3 compatible.Barry Warsaw
2015-01-14Drop reliance on dmidecode executable.Ben Howard
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-07-24SeLinuxGuard: remove invalid check for sanity around restorecon, fix testScott Moser
previous commit occurred because the selinux test was failing in a schroot where there was no /etc/hosts. Now, fix that test more correctly, and fix some bad assumptions in the SeLinuxGuard.
2014-07-24test: make selinux test skipped if selinux not available.Scott Moser
Also, in debian packaging depend on it (so it wont skip there).
2014-07-23more import statementsDimitri John Ledkov
2013-10-02fix permission changesScott Moser
2013-10-01Reordered several imports in order for test suite to pass.Eric Nordlund
2013-07-24tests: fix pep8 issueScott Moser
Move long lines out of the test_util.py file and into tests/data. no pep8 or pylint errors now.
2013-03-19pylint fixesScott Moser
a.) appease pylint on raring, as it doesn't like subprocess pylint: 0.26.0-1ubuntu1 This is mentioned in comments at http://www.logilab.org/ticket/46273 b.) tests/unittests/test_util.py: the mountinfo lines are longer than 80 chars. Just disable long lines complaints for this file.
2013-03-10util.parse_mount_info(): add unit tests.Blair Zajac
2012-11-08Ensure that at needed stages the local variablesJoshua Harlow
of the init class are reset so that when they are regenerated that they will use the updated data instead of using previous data (since they weren't reset). LP: #1076811
2012-09-28add 'safeyaml' to cloudinitScott Moser
In 0.7.0 we started using yaml.safe_load to load data rather than yaml.load. Some producers (namely, ubuntu MAAS created) have produced cloud-config data in the past that included python unicode types. This creates a specialized safe_loader that is basically safe_load + support for python unicode.
2012-08-22fix pep8 complaints.Scott Moser
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
2012-08-09test_util: add pylint ignore for FakeSelinuxScott Moser
The methods here have to match the real Selinux signiture, so even though we dont use these variables.
2012-06-29Refactor the selinux guard to aid in mockingharlowja
1. Adjust the test_util after this mocking to be cleaner
2012-06-21Fixup python selinux guards, only try to restore after we check if its ↵harlowja
useful to restore, fix test to work with selinux enabled sysystems
2012-06-21Missed some other mkdtemp and rmtree calls no longer neededJoshua Harlow
2012-06-21Use the mocker built-in method for creating temporary dirs (which it will ↵Joshua Harlow
cleanup)
2012-06-21This is now functional and all passing againJoshua Harlow
2012-04-04initial checkin of kernel commandline cloud-config url supportScott Moser
2012-03-06tests/unittests/test_util.py: fix pylint errorScott Moser
2012-01-17Lint fixes.Mike Milner
2012-01-17Added delete_dir_contents function to cloudinit.util.Mike Milner
2012-01-17Comment and doc cleanup.Mike Milner
2012-01-17Add unit tests for util.write_file.Mike Milner
2012-01-12Add some tests for get_cfg_option_list_or_str.Mike Milner
2012-01-12Add initial unit test framework.Mike Milner
Add initial tests for mergedict.