summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource/test_maas.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-26 14:31:09 -0500
committerBarry Warsaw <barry@python.org>2015-01-26 14:31:09 -0500
commitde5974fe93dd717e0c7ba6de17db3192cc258cff (patch)
treea877b3ee6d3362892c0683e054d62f8c0e924908 /tests/unittests/test_datasource/test_maas.py
parent926a3df79a10ede61967c60f48ff0670a36e689a (diff)
downloadvyos-cloud-init-de5974fe93dd717e0c7ba6de17db3192cc258cff.tar.gz
vyos-cloud-init-de5974fe93dd717e0c7ba6de17db3192cc258cff.zip
* More str/bytes fixes.
* Temporarily skip the MAAS tests in py3 since they need to be ported to oauthlib.
Diffstat (limited to 'tests/unittests/test_datasource/test_maas.py')
-rw-r--r--tests/unittests/test_datasource/test_maas.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_maas.py b/tests/unittests/test_datasource/test_maas.py
index 6af0cd82..66fe22ae 100644
--- a/tests/unittests/test_datasource/test_maas.py
+++ b/tests/unittests/test_datasource/test_maas.py
@@ -4,7 +4,11 @@ import shutil
import tempfile
import unittest
-from cloudinit.sources import DataSourceMAAS
+# XXX DataSourceMAAS must be ported to oauthlib for Python 3
+import six
+if not six.PY3:
+ from cloudinit.sources import DataSourceMAAS
+
from cloudinit import url_helper
from ..helpers import populate_dir
@@ -14,6 +18,7 @@ except ImportError:
import mock
+@unittest.skipIf(six.PY3, 'DataSourceMAAS must be ported to oauthlib')
class TestMAASDataSource(unittest.TestCase):
def setUp(self):