Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_parse_hostspec(hostspec, expected):
assert BaseBackend.parse_hostspec(hostspec) == expected
def __init__(self, hostname, sudo=False, sudo_user=None, *args, **kwargs):
self._encoding = None
self._host = None
self.hostname = hostname
self.sudo = sudo
self.sudo_user = sudo_user
super(BaseBackend, self).__init__()