'If the underlying socket is closed, :py:obj:`Connection.sendall` propagates the
write error from the low level write call.'

def test_closed(self):

    (server, client) = self._loopback()
    server.sock_shutdown(2)
    exc = self.assertRaises(SysCallError, server.sendall, 'hello,    world')
    if (platform == 'win32'):
        self.assertEqual(exc.args[0], ESHUTDOWN)
    else:
        self.assertEqual(exc.args[0], EPIPE)
