def test_reexec_self(self): collect.reexec_self() self.assertNotIn('Signal received', self.log.output)
def test_reexec_self_signal(self): collect.reexec_self(signal.SIGHUP, None) self.assertIn('Signal received', self.log.output)