summaryrefslogtreecommitdiff
path: root/tests/unittests/test__init__.py
AgeCommit message (Collapse)Author
2016-05-19Fix up tests and flake8 warningsJoshua Harlow
2016-05-11Fix py26 for rhel (and older versions of python)Joshua Harlow
2015-07-21tests: fix TestHandlerHandlePart testsScott Moser
these tests were previously passing, but doing so erroneously. I believe that an update to mock caused them to start failing. I've updated the tests now. The simple change is replacing 'assert_called_with_once' with 'assert_called_once_with'. The second set of changes is seemingly a correction of the following tests expectations: test_normal_version_2 : was not expecting to get frequency passed into handle_part, but should have been. test_no_handle_when_modfreq_once: was expecting to have handle_part called even though the test implies otherwise. test_exception_is_caught: this test just looked broken. Now, we're testing that the part handler is called and that no exception is raised past handle_part
2015-03-02get_cmdline_url: fix in python3 when callingScott Moser
get_cmdline_url was passing a string to response.contents.startswith() where response.contents is now bytes. this changes it to convert input to text, and also to default to text.
2015-01-26Repair the Python 2.6 tests.Barry Warsaw
2015-01-22Use .addCleanup() instead of a .tearDown() where appropriate, although weBarry Warsaw
might have to rewrite this for Python 2.6. Disable Cepko tests (test_cs_util.py) since they are essentially worthless. Convert test_azure to unittest.mock.
2015-01-22Port test__init__.py to unittest.mock.Barry Warsaw
2015-01-21Fix file modes to be Python 2/3 compatible.Barry Warsaw
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-04-01pyflakes cleanupsScott Moser
2014-01-24read_file_or_url: raise UrlError with 404 on ENOENTScott Moser
This makes it easier to call read_file_or_url and handle file or url errors. Now read_file_or_url will raise a UrlError in either case on errors.
2013-03-19merge from trunk at revno 799Scott Moser
2013-03-07more pep8/pylint. all clean nowScott Moser
2013-03-07fix pep8 and pylintScott Moser
2013-03-05Add in a bunch of changes and tests.Joshua Harlow
2013-02-23Get tests working and further adjustments.harlowja
2012-08-22fix pep8 complaints.Scott Moser
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
2012-08-09stright forward pylint cleanups to tests/ and tools/Scott Moser
2012-06-21Get both of these tests back in working shape.Joshua Harlow
2012-04-04initial checkin of kernel commandline cloud-config url supportScott Moser
2012-02-21Cleanups.Mike Milner
2012-02-21Lint fixes.Mike Milner
2012-02-21Add test and fix for catching exceptions.Mike Milner
2012-02-21Add tests for various frequencies.Mike Milner
2012-02-21Added tests for adding handlers.Mike Milner