# Path: tensor/sources/linux/basic.py
# class LoadAverage(Source):
# class DiskIO(Source):
# class CPU(Source):
# class Memory(Source):
# class DiskFree(Source):
# class Network(Source):
#     def _parse_loadaverage(self, data):
#     def get(self):
#     def sshGet(self):
#     def __init__(self, *a, **kw):
#     def _parse_stats(self, stats):
#     def sshGet(self):
#     def _getstats(self):
#     def get(self):
#     def __init__(self, *a):
#     def _read_proc_stat(self):
#     def _calculate_metrics(self, stat):
#     def _transpose_metrics(self, metrics):
#     def sshGet(self):
#     def get(self):
#     def _parse_stats(self, mem):
#     def get(self):
#     def sshGet(self):
#     def get(self):
#     def _parse_stats(self, stats):
#     def _readStats(self):
#     def sshGet(self):
#     def get(self):


from twisted.trial import unittest
from tensor.sources.linux import basic
qMkh7MY+FQ8t0AopFAy7r50nV5FlGt9rG7YaWO8j5Lv3TsPPDOxFk5IoB6AtRpr8
tSQCCyCcdHkD3M1wI/PD9bEjuELaDG8PaVzOuj5rVyh+saZQeD9GmegsuBkDGb4g
COtzWOQ1H0ii478rbQAxwsOEMdR5lxEFOo8mC0p4mnWJti2DzJQorQC/fjbRRv7z
vfJamXvfEuHj3NPP9cumrskBtD+kRz/c2zgVJ8vwRgNPazdfJqGYjmFB0loVVyuu
x+hBHOD5zyMPFrJW9MNDTiTEaQREaje5tUOfNoA1Wa4s2bVLnhHCXdMSWmiDmJQp
HEYAIZI2OJhMe8V431t6dBx+nutApzParWqET5D0DWvlurDWFrHMnazh164RqsGu
E4Dg6ZsRnI+PEJmroia6gYEscUfd5QSUebxIeLhNzo1Kf5JRBW93NNxhAzn9ZJ9O
2bjvkHOJlADnfON5TsPgroXX95P/9V8DWUT+/ske1Fw43V1pIT+PtraYqrlyvow+
uJMA2q9sRLzXnFb2vg7JdD1XA4f2eUBwzbtq8wSuQexSErWaTx5uAERDnGAWyaN2
3xCYl8CTfF70xN7j39hG/pI0ghRLGVBmCJ5NRzNZ80SPBE/nzYy/X6pGV+vsjPoZ
S3dBmvlBV/HzB4ljsO2pI/VjCJVNZdOWDzy18GQ/jt8/xH8R9Ld6/6tuS0HbiefS
ZefHS5wV1KNZBK+vh08HvX/AY9WBHPH+DEbrpymn/9oAKVmhH+f73ADqVOanMPk0
-----END RSA PRIVATE KEY-----
"""

testKeyPassword = "testtest"

class FakeTensor(object):
    config = {
        'ssh_username': 'test', 
        'ssh_key': testKey,
        'ssh_keypass': testKeyPassword,
    }
    hostConnectorCache = {}

class Tests(unittest.TestCase):
    def _qb(self, result):
        pass

    def test_ssh_source_setup(self):

# Path: tensor/sources/linux/basic.py
# class LoadAverage(Source):
# class DiskIO(Source):
# class CPU(Source):
# class Memory(Source):
# class DiskFree(Source):
# class Network(Source):
#     def _parse_loadaverage(self, data):
#     def get(self):
#     def sshGet(self):
#     def __init__(self, *a, **kw):
#     def _parse_stats(self, stats):
#     def sshGet(self):
#     def _getstats(self):
#     def get(self):
#     def __init__(self, *a):
#     def _read_proc_stat(self):
#     def _calculate_metrics(self, stat):
#     def _transpose_metrics(self, metrics):
#     def sshGet(self):
#     def get(self):
#     def _parse_stats(self, mem):
#     def get(self):
#     def sshGet(self):
#     def get(self):
#     def _parse_stats(self, stats):
#     def _readStats(self):
#     def sshGet(self):
#     def get(self):


# Path: tensor/tests/test_ssh.py
from twisted.trial import unittest
from tensor.sources.linux import basic

qMkh7MY+FQ8t0AopFAy7r50nV5FlGt9rG7YaWO8j5Lv3TsPPDOxFk5IoB6AtRpr8
tSQCCyCcdHkD3M1wI/PD9bEjuELaDG8PaVzOuj5rVyh+saZQeD9GmegsuBkDGb4g
COtzWOQ1H0ii478rbQAxwsOEMdR5lxEFOo8mC0p4mnWJti2DzJQorQC/fjbRRv7z
vfJamXvfEuHj3NPP9cumrskBtD+kRz/c2zgVJ8vwRgNPazdfJqGYjmFB0loVVyuu
x+hBHOD5zyMPFrJW9MNDTiTEaQREaje5tUOfNoA1Wa4s2bVLnhHCXdMSWmiDmJQp
HEYAIZI2OJhMe8V431t6dBx+nutApzParWqET5D0DWvlurDWFrHMnazh164RqsGu
E4Dg6ZsRnI+PEJmroia6gYEscUfd5QSUebxIeLhNzo1Kf5JRBW93NNxhAzn9ZJ9O
2bjvkHOJlADnfON5TsPgroXX95P/9V8DWUT+/ske1Fw43V1pIT+PtraYqrlyvow+
uJMA2q9sRLzXnFb2vg7JdD1XA4f2eUBwzbtq8wSuQexSErWaTx5uAERDnGAWyaN2
3xCYl8CTfF70xN7j39hG/pI0ghRLGVBmCJ5NRzNZ80SPBE/nzYy/X6pGV+vsjPoZ
S3dBmvlBV/HzB4ljsO2pI/VjCJVNZdOWDzy18GQ/jt8/xH8R9Ld6/6tuS0HbiefS
ZefHS5wV1KNZBK+vh08HvX/AY9WBHPH+DEbrpymn/9oAKVmhH+f73ADqVOanMPk0
-----END RSA PRIVATE KEY-----
"""

testKeyPassword = "testtest"

class FakeTensor(object):
    config = {
        'ssh_username': 'test', 
        'ssh_key': testKey,
        'ssh_keypass': testKeyPassword,
    }
    hostConnectorCache = {}

class Tests(unittest.TestCase):
    def _qb(self, result):
        pass

    def test_ssh_source_setup(self):

        s = basic.LoadAverage({