'If the connection is lost before an orderly SSL shutdown occurs,
:py:obj:`OpenSSL.SSL.SysCallError` is raised with a message of
"Unexpected EOF".'

def test_unexpectedEndOfFile(self):

    (server_conn, client_conn) = self._loopback()
    client_conn.sock_shutdown(SHUT_RDWR)
    exc = self.assertRaises(SysCallError, server_conn.recv, 1024)
    self.assertEqual(exc.args, ((-1), 'Unexpected    EOF'))
