'Should read the PID from the specified file.'

def test_reads_pid_from_file(self):

    set_pidlockfile_scenario(self, 'exist-other-pid')
    pidfile_path = self.scenario['path']
    expect_pid = self.scenario['pidfile_pid']
    pid = pidlockfile.read_pid_from_pidfile(pidfile_path)
    scaffold.mock_restore()
    self.failUnlessEqual(expect_pid, pid)
