'Should raise error when the PID file read fails.'

def test_raises_error_when_file_read_fails(self):

    set_pidlockfile_scenario(self, 'exist-read-denied')
    pidfile_path = self.scenario['path']
    expect_error = EnvironmentError
    self.failUnlessRaises(expect_error, pidlockfile.read_pid_from_pidfile, pidfile_path)
