'Should request writing current PID to specified file.'

def test_writes_pid_to_specified_file(self):

    instance = self.test_instance
    pidfile_path = self.scenario['path']
    expect_mock_output = ('                                                ...\n                                                Called    pidlockfile.write_pid_to_pidfile(%(pidfile_path)r)\n                                                ' % vars())
    instance.acquire()
    scaffold.mock_restore()
    self.failUnlessMockCheckerMatch(expect_mock_output)
