'Verify that writing with L{fdesc.writeToFD} when the read end is closed
results in a connection lost indicator.'

def test_writeToClosed(self):

    os.close(self.r)
    self.assertEqual(self.write('s'), fdesc.CONNECTION_LOST)
