~nataliabidart/magicicada-server/bump-client-new-namespace

« back to all changes in this revision

Viewing changes to magicicada/supervisor/tests/test_heartbeat_listener.py

  • Committer: Natalia
  • Date: 2018-05-31 00:27:17 UTC
  • Revision ID: natalia.bidart@ubuntu.com-20180531002717-ltcne00ovkrqk097
Fixed tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
                self.listener.restart("foo", last)
83
83
 
84
84
            msg = "Failed to stop process %s (last heartbeat: %s), exiting: %s"
85
 
            self.handler.assert_error(
86
 
                msg % ("foo", last, "<Fault 42: 'Failed to stop the process.'>")
87
 
            )
 
85
            args = ("foo", last, "<Fault 42: 'Failed to stop the process.'>")
 
86
            self.handler.assert_error(msg % args)
88
87
 
89
88
    def test_restart_fail_start(self):
90
89
        """Test the restart method failing to start the process."""