~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to tests/unittests/test_data.py

  • Committer: Barry Warsaw
  • Date: 2015-01-21 20:35:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1054.
  • Revision ID: barry@python.org-20150121203556-dyvnyq7echfj6pe7
Fix file modes to be Python 2/3 compatible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
 
338
338
        mock_write = self.mocker.replace("cloudinit.util.write_file",
339
339
                                         passthrough=False)
340
 
        mock_write(ci.paths.get_ipath("cloud_config"), "", 0600)
 
340
        mock_write(ci.paths.get_ipath("cloud_config"), "", 0o600)
341
341
        self.mocker.replay()
342
342
 
343
343
        log_file = self.capture_log(logging.WARNING)