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

def test_writeToInvalid(self):

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