~chris.macnaughton/mojo/error-output

« back to all changes in this revision

Viewing changes to mojo/tests/test_debuglogs.py

  • Committer: Chris MacNaughton
  • Date: 2018-01-19 07:08:26 UTC
  • mfrom: (462.1.4 mojo3)
  • Revision ID: chris.macnaughton@canonical.com-20180119070826-qg4finno09l6kh16
[chris.macnaughton, r=1chb1n]  Updating functions to py3

This MP covers:

- items -> iteritems
- print -> print()
- running 2to3

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    @mock.patch('subprocess.check_output')
20
20
    def test__resolve_remote_paths(self, _check_output):
21
21
        """Test _resolve_remote_paths"""
22
 
        _check_output.return_value = u"['/etc/init.d/apache2']"
 
22
        _check_output.return_value = "['/etc/init.d/apache2']"
23
23
        ws = None
24
24
        debug_logs = DebugLogs(ws, "production", None, None)
25
25
        self.assertEqual(debug_logs._resolve_remote_paths('apache2/0', '/etc/init.d/apache2'),