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

« back to all changes in this revision

Viewing changes to tests/unittests/test_handler/test_handler_ca_certs.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:
150
150
        mock_load = self.mocker.replace(util.load_file, passthrough=False)
151
151
 
152
152
        mock_write("/usr/share/ca-certificates/cloud-init-ca-certs.crt",
153
 
                   cert, mode=0644)
 
153
                   cert, mode=0o644)
154
154
 
155
155
        mock_load("/etc/ca-certificates.conf")
156
156
        self.mocker.result(ca_certs_content)