summaryrefslogtreecommitdiff
path: root/tests/unittests/test_data.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-21 15:42:59 -0500
committerBarry Warsaw <barry@python.org>2015-01-21 15:42:59 -0500
commita64bb4febc79fcf641f6471d8cc00c74ca915f3d (patch)
tree7dd64f38f548fa38f11f400ce4392f7e3f504e15 /tests/unittests/test_data.py
parentcccc0ff012d2e7b5c238609b22cc064b519e54a5 (diff)
downloadvyos-cloud-init-a64bb4febc79fcf641f6471d8cc00c74ca915f3d.tar.gz
vyos-cloud-init-a64bb4febc79fcf641f6471d8cc00c74ca915f3d.zip
More octal literal fixes.
Diffstat (limited to 'tests/unittests/test_data.py')
-rw-r--r--tests/unittests/test_data.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unittests/test_data.py b/tests/unittests/test_data.py
index 5517f0b4..03296e62 100644
--- a/tests/unittests/test_data.py
+++ b/tests/unittests/test_data.py
@@ -396,7 +396,7 @@ c: 4
mock_write = self.mocker.replace("cloudinit.util.write_file",
passthrough=False)
- mock_write(ci.paths.get_ipath("cloud_config"), "", 0600)
+ mock_write(ci.paths.get_ipath("cloud_config"), "", 0o600)
self.mocker.replay()
log_file = self.capture_log(logging.WARNING)
@@ -415,8 +415,8 @@ c: 4
outpath = os.path.join(ci.paths.get_ipath_cur("scripts"), "part-001")
mock_write = self.mocker.replace("cloudinit.util.write_file",
passthrough=False)
- mock_write(ci.paths.get_ipath("cloud_config"), "", 0600)
- mock_write(outpath, script, 0700)
+ mock_write(ci.paths.get_ipath("cloud_config"), "", 0o600)
+ mock_write(outpath, script, 0o700)
self.mocker.replay()
log_file = self.capture_log(logging.WARNING)
@@ -435,8 +435,8 @@ c: 4
outpath = os.path.join(ci.paths.get_ipath_cur("scripts"), "part-001")
mock_write = self.mocker.replace("cloudinit.util.write_file",
passthrough=False)
- mock_write(ci.paths.get_ipath("cloud_config"), "", 0600)
- mock_write(outpath, script, 0700)
+ mock_write(ci.paths.get_ipath("cloud_config"), "", 0o600)
+ mock_write(outpath, script, 0o700)
self.mocker.replay()
log_file = self.capture_log(logging.WARNING)
@@ -455,8 +455,8 @@ c: 4
outpath = os.path.join(ci.paths.get_ipath_cur("scripts"), "part-001")
mock_write = self.mocker.replace("cloudinit.util.write_file",
passthrough=False)
- mock_write(outpath, script, 0700)
- mock_write(ci.paths.get_ipath("cloud_config"), "", 0600)
+ mock_write(outpath, script, 0o700)
+ mock_write(ci.paths.get_ipath("cloud_config"), "", 0o600)
self.mocker.replay()
log_file = self.capture_log(logging.WARNING)