'Should send SIGTERM to the daemon process.'

def test_sends_terminate_signal_to_process_from_pidfile(self):

    instance = self.test_instance
    test_pid = self.scenario['pidlockfile_scenario']['pidfile_pid']
    expect_signal = signal.SIGTERM
    expect_mock_output = ('                                                ...\n                                                Called    os.kill(%(test_pid)r,    %(expect_signal)r)\n                                                ' % vars())
    instance.do_action()
    scaffold.mock_restore()
    self.failUnlessMockCheckerMatch(expect_mock_output)
