summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-01-06 11:46:50 -0500
committerScott Moser <smoser@ubuntu.com>2015-01-06 11:46:50 -0500
commit4de52eb92333245f2c88e386d57c16547b89ab97 (patch)
tree909aae7737c771112b53b86c7a5236e9bb33981b /tests/unittests
parentc8ab70b9413e3d8d0f240d968023258b8a0970e6 (diff)
downloadvyos-cloud-init-4de52eb92333245f2c88e386d57c16547b89ab97.tar.gz
vyos-cloud-init-4de52eb92333245f2c88e386d57c16547b89ab97.zip
pep8
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_datasource/test_gce.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py
index 957747ef..e2449ba8 100644
--- a/tests/unittests/test_datasource/test_gce.py
+++ b/tests/unittests/test_datasource/test_gce.py
@@ -33,7 +33,7 @@ GCE_META = {
'project/attributes/sshKeys': 'user:ssh-rsa AA2..+aRD0fyVw== root@server',
'instance/hostname': 'server.project-foo.local',
'instance/attributes/user-data': '/bin/echo foo\n',
- 'instance/attributes/user-data-encoding':'',
+ 'instance/attributes/user-data-encoding': '',
}
GCE_META_PARTIAL = {
@@ -51,7 +51,8 @@ GCE_META_ENCODING = {
}
HEADERS = {'X-Google-Metadata-Request': 'True'}
-MD_URL_RE = re.compile(r'http://metadata.google.internal./computeMetadata/v1/.*')
+MD_URL_RE = re.compile(
+ r'http://metadata.google.internal./computeMetadata/v1/.*')
def _new_request_callback(gce_meta=None):
@@ -136,5 +137,6 @@ class TestDataSourceGCE(test_helpers.HttprettyTestCase):
body=_new_request_callback(GCE_META_ENCODING))
self.ds.get_data()
- decoded = b64decode(GCE_META_ENCODING.get('instance/attributes/user-data'))
+ decoded = b64decode(
+ GCE_META_ENCODING.get('instance/attributes/user-data'))
self.assertEqual(decoded, self.ds.get_userdata_raw())