# Path: vcontrol/rest/machines/boot.py
# class BootMachineR:
#     """
#     This endpoint is for booting a stopped machine.
#     """
#     allow_origin, rest_url = get_allowed.get_allowed()
#     def GET(self, machine):
#         try:
#             web.header('Access-Control-Allow-Origin', self.allow_origin)
#         except Exception as e:
#             print(e.message)
#         try:
#             out = subprocess.check_output("/usr/local/bin/docker-machine start "+machine, shell=True)
#         except:
#             out = "unable to start machine"
#         return str(out)


from vcontrol.rest.machines.boot import BootMachineR

UNSUCCESSFUL_BOOT_MESSAGE = "unable to start machine"


def test_boot_machine_fail():
    """ tests the BootMachine class for improper booting"""
    test_machine = 'foo'

# Path: vcontrol/rest/machines/boot.py
# class BootMachineR:
#     """
#     This endpoint is for booting a stopped machine.
#     """
#     allow_origin, rest_url = get_allowed.get_allowed()
#     def GET(self, machine):
#         try:
#             web.header('Access-Control-Allow-Origin', self.allow_origin)
#         except Exception as e:
#             print(e.message)
#         try:
#             out = subprocess.check_output("/usr/local/bin/docker-machine start "+machine, shell=True)
#         except:
#             out = "unable to start machine"
#         return str(out)


# Path: tests/test_boot.py
from vcontrol.rest.machines.boot import BootMachineR


UNSUCCESSFUL_BOOT_MESSAGE = "unable to start machine"


def test_boot_machine_fail():
    """ tests the BootMachine class for improper booting"""
    test_machine = 'foo'

    shutdown_machine_r = BootMachineR()