# Path: nuka/hosts/base.py
# RLIMIT_NOFILE = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
# MAX_PROCESSES = int(RLIMIT_NOFILE / 4)
# class HostGroup(OrderedDict):
# class TimeIt(object):
# class BaseHost(object):
# class Host(BaseHost):
# class LocalHost(BaseHost):
# class Chroot(BaseHost):
#     async def boot(self):
#     async def destroy(self):  # pragma: no cover
#     def __repr__(self):
#     def __init__(self, host, task=None, **kwargs):
#     def __enter__(self, *args, **kwargs):
#     def __exit__(self, *args, **kwargs):
#     def __init__(self, hostname=None, port='22', **vars):
#     def log(self):
#     def add_task(self, task):
#     def running_tasks(self):
#     def timeit(self, task=None, **kwargs):
#     def add_time(self, start=None, task=None, **kwargs):
#     def cancel(self):
#     def cancelled(self):
#     def fail(self, exc):
#     def failed(self):
#     def _get_best_addresses(self, public=True):
#     def public_ip(self):
#     def private_ip(self):
#     def __getattr__(self, attr):
#     def __str__(self):
#     def __repr__(self):
#     def bootstrap_command(self):
#     async def boot(self):  # pragma: no cover
#     async def get_inventory(self):  # pragma: no cover
#     async def destroy(self):  # pragma: no cover
#     async def acquire_session_slot(self):
#     def free_session_slot(self):
#     async def create_process(self, cmd, task=None, **kwargs):
#     async def run_command(self, cmd=None, stdin=None, task=None, **kwargs):
#     async def send_messages(self, message):  # pragma: no cover
#     def from_stdin(cls):
#     def __init__(self, *args, **kwargs):
#     def wraps_command_line(self, cmd, **kwargs):
#     def __init__(self):
#     def wraps_command_line(self, cmd, **kwargs):
#     def __init__(self, path):
#     def wraps_command_line(self, cmd, **kwargs):


import asyncio
import pytest
from nuka.hosts import base
# -*- coding: utf-8 -*-


def test_basehost():
    host = base.BaseHost(address='127.0.0.1')
    assert host.hostname == '127.0.0.1'
    assert host.bootstrap_command is None


# Path: nuka/hosts/base.py
# RLIMIT_NOFILE = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
# MAX_PROCESSES = int(RLIMIT_NOFILE / 4)
# class HostGroup(OrderedDict):
# class TimeIt(object):
# class BaseHost(object):
# class Host(BaseHost):
# class LocalHost(BaseHost):
# class Chroot(BaseHost):
#     async def boot(self):
#     async def destroy(self):  # pragma: no cover
#     def __repr__(self):
#     def __init__(self, host, task=None, **kwargs):
#     def __enter__(self, *args, **kwargs):
#     def __exit__(self, *args, **kwargs):
#     def __init__(self, hostname=None, port='22', **vars):
#     def log(self):
#     def add_task(self, task):
#     def running_tasks(self):
#     def timeit(self, task=None, **kwargs):
#     def add_time(self, start=None, task=None, **kwargs):
#     def cancel(self):
#     def cancelled(self):
#     def fail(self, exc):
#     def failed(self):
#     def _get_best_addresses(self, public=True):
#     def public_ip(self):
#     def private_ip(self):
#     def __getattr__(self, attr):
#     def __str__(self):
#     def __repr__(self):
#     def bootstrap_command(self):
#     async def boot(self):  # pragma: no cover
#     async def get_inventory(self):  # pragma: no cover
#     async def destroy(self):  # pragma: no cover
#     async def acquire_session_slot(self):
#     def free_session_slot(self):
#     async def create_process(self, cmd, task=None, **kwargs):
#     async def run_command(self, cmd=None, stdin=None, task=None, **kwargs):
#     async def send_messages(self, message):  # pragma: no cover
#     def from_stdin(cls):
#     def __init__(self, *args, **kwargs):
#     def wraps_command_line(self, cmd, **kwargs):
#     def __init__(self):
#     def wraps_command_line(self, cmd, **kwargs):
#     def __init__(self, path):
#     def wraps_command_line(self, cmd, **kwargs):


# Path: tests/test_hosts.py
import asyncio
import pytest
from nuka.hosts import base

# -*- coding: utf-8 -*-


def test_basehost():
    host = base.BaseHost(address='127.0.0.1')
    assert host.hostname == '127.0.0.1'
    assert host.bootstrap_command is None


    host = base.BaseHost(address='127.0.0.1', bootstrap_command='ls')