# Path: tests/util.py
# def _support(filename):
# def _config(name):
# def needs_builtin(name):
#         def __init__(self):
#         def setUpClass(cls):
#         def tearDownClass(cls):
#             def setUpClass(cls):
# def update_env(testcase, mapping, env=os.environ):
#     def replace(target, source):
# def k5shell(args=None):
# def is_low_entropy():
#     class DummyK5Realm(object):
#     class KerberosTestCase(unittest.TestCase):
#         class KerberosTestCase(unittest.TestCase):
# 
# Path: tests/test_client.py
# FINGERPRINTS = {
#     "ssh-dss": b"\x44\x78\xf0\xb9\xa2\x3c\xc5\x18\x20\x09\xff\x75\x5b\xc1\xd2\x6c",  # noqa
#     "ssh-rsa": b"\x60\x73\x38\x44\xcb\x51\x86\x65\x7f\xde\xda\xa2\x2b\x5a\x57\xd5",  # noqa
#     "ecdsa-sha2-nistp256": b"\x25\x19\xeb\x55\xe6\xa1\x47\xff\x4f\x38\xd2\x75\x6f\xa5\xd5\x60",  # noqa
#     "ssh-ed25519": b'\xb3\xd5"\xaa\xf9u^\xe8\xcd\x0e\xea\x02\xb9)\xa2\x80',
# }


import socket
import threading
import paramiko
from .util import _support, needs_gssapi, KerberosTestCase, update_env
from .test_client import FINGERPRINTS
        schan = self.ts.accept(1.0)

        schan.send("Hello there.\n")
        schan.send_stderr("This is on stderr.\n")
        schan.close()

        self.assertEquals("Hello there.\n", stdout.readline())
        self.assertEquals("", stdout.readline())
        self.assertEquals("This is on stderr.\n", stderr.readline())
        self.assertEquals("", stderr.readline())

        stdin.close()
        stdout.close()
        stderr.close()

    def test_gss_auth(self):
        """
        Verify that Paramiko can handle SSHv2 GSS-API / SSPI authentication
        (gssapi-with-mic) in client and server mode.
        """
        self._test_connection(allow_agent=False, look_for_keys=False)

    def test_auth_trickledown(self):
        """
        Failed gssapi-with-mic doesn't prevent subsequent key from succeeding
        """
        self.hostname = (
            "this_host_does_not_exists_and_causes_a_GSSAPI-exception"
        )
        self._test_connection(

# Path: tests/util.py
# def _support(filename):
# def _config(name):
# def needs_builtin(name):
#         def __init__(self):
#         def setUpClass(cls):
#         def tearDownClass(cls):
#             def setUpClass(cls):
# def update_env(testcase, mapping, env=os.environ):
#     def replace(target, source):
# def k5shell(args=None):
# def is_low_entropy():
#     class DummyK5Realm(object):
#     class KerberosTestCase(unittest.TestCase):
#         class KerberosTestCase(unittest.TestCase):
# 
# Path: tests/test_client.py
# FINGERPRINTS = {
#     "ssh-dss": b"\x44\x78\xf0\xb9\xa2\x3c\xc5\x18\x20\x09\xff\x75\x5b\xc1\xd2\x6c",  # noqa
#     "ssh-rsa": b"\x60\x73\x38\x44\xcb\x51\x86\x65\x7f\xde\xda\xa2\x2b\x5a\x57\xd5",  # noqa
#     "ecdsa-sha2-nistp256": b"\x25\x19\xeb\x55\xe6\xa1\x47\xff\x4f\x38\xd2\x75\x6f\xa5\xd5\x60",  # noqa
#     "ssh-ed25519": b'\xb3\xd5"\xaa\xf9u^\xe8\xcd\x0e\xea\x02\xb9)\xa2\x80',
# }


# Path: tests/test_ssh_gss.py
import socket
import threading
import paramiko
from .util import _support, needs_gssapi, KerberosTestCase, update_env
from .test_client import FINGERPRINTS

        schan = self.ts.accept(1.0)

        schan.send("Hello there.\n")
        schan.send_stderr("This is on stderr.\n")
        schan.close()

        self.assertEquals("Hello there.\n", stdout.readline())
        self.assertEquals("", stdout.readline())
        self.assertEquals("This is on stderr.\n", stderr.readline())
        self.assertEquals("", stderr.readline())

        stdin.close()
        stdout.close()
        stderr.close()

    def test_gss_auth(self):
        """
        Verify that Paramiko can handle SSHv2 GSS-API / SSPI authentication
        (gssapi-with-mic) in client and server mode.
        """
        self._test_connection(allow_agent=False, look_for_keys=False)

    def test_auth_trickledown(self):
        """
        Failed gssapi-with-mic doesn't prevent subsequent key from succeeding
        """
        self.hostname = (
            "this_host_does_not_exists_and_causes_a_GSSAPI-exception"
        )
        self._test_connection(

            key_filename=[_support("test_rsa.key")],