~freyes/maas-deployer/py3

« back to all changes in this revision

Viewing changes to maas_deployer/tests/test_utils.py

  • Committer: Felipe Reyes
  • Date: 2016-04-15 21:39:39 UTC
  • Revision ID: felipe.reyes@canonical.com-20160415213939-jqlke8inhfgy1llk
Add python 3.5 support

This is specially important when running maas-deployer in Xenial, because
MAAS API client package (python3-maas-client) is only available for python3

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                util.execc(cmd1, pipedcmds=[cmd2])
87
87
            except subprocess.CalledProcessError as exc:
88
88
                self.assertEqual(exc.output,
89
 
                                 "ls: cannot access %s: No such file or "
 
89
                                 "ls: cannot access '%s': No such file or "
90
90
                                 "directory\n" % (os.path.join(tmpdir, '1')))
91
91
                self.assertEqual(exc.returncode, 2)
92
92
            else: