~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to tests/test_utils.py

  • Committer: Balint Reczey
  • Date: 2018-10-01 15:56:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2842.
  • Revision ID: balint.reczey@canonical.com-20181001155640-8okyjf48fx7oq0gv
Ignore PEP 8 W503 instead of E502 and drop many added backslashes

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                        mock.mock_open(read_data=data)) as mock_file:
33
33
            assert open("/proc/1/stat").read() == data
34
34
            mock_file.assert_called_with("/proc/1/stat")
35
 
            self.assertTrue(utils.is_child_of_process_name("init") \
 
35
            self.assertTrue(utils.is_child_of_process_name("init")
36
36
                            or utils.is_child_of_process_name("systemd"))
37
37
            self.assertFalse(utils.is_child_of_process_name("mvo"))
38
38