diff options
author | Barry Warsaw <barry@python.org> | 2015-01-26 11:14:06 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2015-01-26 11:14:06 -0500 |
commit | 841db73600e3f203243c773109d71ab88d3334bc (patch) | |
tree | 051f44833ae1ec1b31c5f893c6eca8b39e07a83c /tests/unittests/test_handler/test_handler_chef.py | |
parent | 3246c85763d5cdebb3e240fcd5ae29834cbf6299 (diff) | |
download | vyos-cloud-init-841db73600e3f203243c773109d71ab88d3334bc.tar.gz vyos-cloud-init-841db73600e3f203243c773109d71ab88d3334bc.zip |
More test repairs.
Diffstat (limited to 'tests/unittests/test_handler/test_handler_chef.py')
-rw-r--r-- | tests/unittests/test_handler/test_handler_chef.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_chef.py b/tests/unittests/test_handler/test_handler_chef.py index b06a160c..8ab27911 100644 --- a/tests/unittests/test_handler/test_handler_chef.py +++ b/tests/unittests/test_handler/test_handler_chef.py @@ -11,6 +11,7 @@ from cloudinit.sources import DataSourceNone from .. import helpers as t_help +import six import logging import shutil import tempfile @@ -77,7 +78,7 @@ class TestChef(t_help.FilesystemMockingTestCase): for k, v in cfg['chef'].items(): self.assertIn(v, c) for k, v in cc_chef.CHEF_RB_TPL_DEFAULTS.items(): - if isinstance(v, basestring): + if isinstance(v, six.string_types): self.assertIn(v, c) c = util.load_file(cc_chef.CHEF_FB_PATH) self.assertEqual({}, json.loads(c)) |