# Path: doodad/credentials/ssh.py
# SSH_IDENTITY_FILE = None
#     SSH_IDENTITY_FILE = id_file
# class SSHCredentials(object):
#     def __init__(self, hostname, username, identity_file=None):
#     def get_ssh_cmd_prefix(self):
#     def get_ssh_bash_cmd(self, cmd):
#     def get_ssh_script_cmd(self, script_name, shell_interpreter='bash'):
#     def get_scp_cmd(self, source, destination, src_remote=True, recursive=True):
#     def user_host(self):
# def set_identity_file(id_file):
# def get_credentials(hostname, username):


import unittest
from doodad.credentials import ssh


class TestSSHCreds(unittest.TestCase):
    def test_user_host(self):
        creds = ssh.get_credentials(username='a', hostname='b.com')
        self.assertEqual(creds.user_host, 'a@b.com')

    def test_global_set(self):

# Path: doodad/credentials/ssh.py
# SSH_IDENTITY_FILE = None
#     SSH_IDENTITY_FILE = id_file
# class SSHCredentials(object):
#     def __init__(self, hostname, username, identity_file=None):
#     def get_ssh_cmd_prefix(self):
#     def get_ssh_bash_cmd(self, cmd):
#     def get_ssh_script_cmd(self, script_name, shell_interpreter='bash'):
#     def get_scp_cmd(self, source, destination, src_remote=True, recursive=True):
#     def user_host(self):
# def set_identity_file(id_file):
# def get_credentials(hostname, username):


# Path: doodad/credentials/test_ssh.py
import unittest
from doodad.credentials import ssh



class TestSSHCreds(unittest.TestCase):
    def test_user_host(self):
        creds = ssh.get_credentials(username='a', hostname='b.com')
        self.assertEqual(creds.user_host, 'a@b.com')

    def test_global_set(self):

        ssh.set_identity_file('mykey')