'L{NonePIDFile._write} raises L{OSError} with an errno of L{errno.EPERM}.'

def test_write(self):

    pidFile = NonePIDFile()
    error = self.assertRaises(OSError, pidFile._write, 0)
    self.assertEqual(error.errno, errno.EPERM)
