~aptdaemon-developers/aptdaemon/1.x

« back to all changes in this revision

Viewing changes to tests/test_configfileprompt.py

  • Committer: Sebastian Heinlein
  • Date: 2012-12-29 23:41:16 UTC
  • mfrom: (883.1.26 pep8)
  • Revision ID: devel@glatzor.de-20121229234116-nd390n01ut2fcfce
PEP8 fixes and test for the test suite

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                                "org.debian.apt: Could not cancel transaction")
60
60
            # Check if we fail correctly on wrong answers
61
61
            try:
62
 
                yield trans.resolve_config_file_conflict(config_old, "a&&dasmk")
 
62
                yield trans.resolve_config_file_conflict(config_old,
 
63
                                                         "a&&dasmk")
63
64
            except aptdaemon.errors.AptDaemonError as error:
64
65
                self.assertTrue(str(error).index("Invalid value"))
65
66
                yield trans.resolve_config_file_conflict(config_old, "replace")