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

« back to all changes in this revision

Viewing changes to tests/unittests/test_datasource/test_azure.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:
153
153
        ret = dsrc.get_data()
154
154
        self.assertTrue(ret)
155
155
        self.assertTrue(os.path.isdir(self.waagent_d))
156
 
        self.assertEqual(stat.S_IMODE(os.stat(self.waagent_d).st_mode), 0700)
 
156
        self.assertEqual(stat.S_IMODE(os.stat(self.waagent_d).st_mode), 0o700)
157
157
 
158
158
    def test_user_cfg_set_agent_command_plain(self):
159
159
        # set dscfg in via plaintext