def METHOD_NAME(self):
    """
    Verify that writing with L{fdesc.writeToFD} when the read end is closed
    results in a connection lost indicator.
    """
    os.close(self.r)
    self.assertEqual(self.write(b"s"), fdesc.CONNECTION_LOST)