# Path: tests/base.py
# LOG = oslo_logging.getLogger(__name__)
# class TestCase(base.BaseTestCase):
#     def setUp(self):
#     def _common_cleanup(self):
#     def log_level(self, level):
#     def mock_object(self, obj, attr_name, new_attr=None, **kwargs):
#     def assertDictMatch(self, d1, d2, approx_equal=False, tolerance=0.001):
#         def raise_assertion(msg):
# 
# Path: virtman/openstack/common/processutils.py
# LOG = logging.getLogger(__name__)
#             _PIPE = subprocess.PIPE  # pylint: disable=E1101
# class InvalidArgumentError(Exception):
# class UnknownArgumentError(Exception):
# class ProcessExecutionError(Exception):
# class NoRootWrapSpecified(Exception):
#     def __init__(self, message=None):
#     def __init__(self, message=None):
#     def __init__(self, stdout=None, stderr=None, exit_code=None, cmd=None,
#                  description=None):
#     def __init__(self, message=None):
# def _subprocess_setup():
# def execute(*cmd, **kwargs):
# def trycmd(*args, **kwargs):
# def ssh_execute(ssh, cmd, process_input=None,
#                 addl_env=None, check_exit_code=True):
# 
# Path: virtman/blockservice.py
# LOG = logging.getLogger(__name__)
# def findloop():
# def try_linkloop(loop_dev):
# def is_looped(loop_dev):
# def linkloop(loop_dev, path):
# def unlinkloop(loop_dev):


import mock
import os
import string
from tests import base
from virtman.openstack.common import processutils as putils
from virtman import blockservice
# -*- coding: utf-8 -*-



class TestBlockService(base.TestCase):
    def setUp(self):
        super(TestBlockService, self).setUp()
        self.cmds = []

# Path: tests/base.py
# LOG = oslo_logging.getLogger(__name__)
# class TestCase(base.BaseTestCase):
#     def setUp(self):
#     def _common_cleanup(self):
#     def log_level(self, level):
#     def mock_object(self, obj, attr_name, new_attr=None, **kwargs):
#     def assertDictMatch(self, d1, d2, approx_equal=False, tolerance=0.001):
#         def raise_assertion(msg):
# 
# Path: virtman/openstack/common/processutils.py
# LOG = logging.getLogger(__name__)
#             _PIPE = subprocess.PIPE  # pylint: disable=E1101
# class InvalidArgumentError(Exception):
# class UnknownArgumentError(Exception):
# class ProcessExecutionError(Exception):
# class NoRootWrapSpecified(Exception):
#     def __init__(self, message=None):
#     def __init__(self, message=None):
#     def __init__(self, stdout=None, stderr=None, exit_code=None, cmd=None,
#                  description=None):
#     def __init__(self, message=None):
# def _subprocess_setup():
# def execute(*cmd, **kwargs):
# def trycmd(*args, **kwargs):
# def ssh_execute(ssh, cmd, process_input=None,
#                 addl_env=None, check_exit_code=True):
# 
# Path: virtman/blockservice.py
# LOG = logging.getLogger(__name__)
# def findloop():
# def try_linkloop(loop_dev):
# def is_looped(loop_dev):
# def linkloop(loop_dev, path):
# def unlinkloop(loop_dev):


# Path: tests/test_blockservice.py
import mock
import os
import string
from tests import base
from virtman.openstack.common import processutils as putils
from virtman import blockservice

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



class TestBlockService(base.TestCase):
    def setUp(self):
        super(TestBlockService, self).setUp()
        self.cmds = []

        self.mock_object(putils, 'execute',