'Test that the number of bytes L{fdesc.writeToFD} reports as written
with its return value are seen by L{fdesc.readFromFD}.'

def test_writeAndRead(self):

    n = self.write('hello')
    self.assertTrue((n > 0))
    s = self.read()
    self.assertEqual(len(s), n)
    self.assertEqual('hello'[:n], s)
