'Should attempt to open specified PID file filename.'

def test_opens_specified_filename(self):

    pidfile_path = self.scenario['path']
    expect_flags = ((os.O_CREAT | os.O_EXCL) | os.O_WRONLY)
    expect_mode = 420
    expect_mock_output = ('                                                Called    os.open(%(pidfile_path)r,    %(expect_flags)r,    %(expect_mode)r)\n                                                ...\n                                                ' % vars())
    pidlockfile.write_pid_to_pidfile(pidfile_path)
    scaffold.mock_restore()
    self.failUnlessMockCheckerMatch(expect_mock_output)
