'TCP protocols support half-close connections, but not all of them
support being notified of write closes.  In this case, test that
half-closing the connection causes the peer\'s connection to be
closed.'

def testNoNotification(self):

    self.client.transport.write('hello')
    self.client.transport.loseWriteConnection()
    self.f.protocol.closedDeferred = d = defer.Deferred()
    self.client.closedDeferred = d2 = defer.Deferred()
    d.addCallback((lambda x: self.assertEqual(self.f.protocol.data, 'hello')))
    d.addCallback((lambda x: self.assertTrue(self.f.protocol.closed)))
    return defer.gatherResults([d, d2])
