# Path: conjureup/controllers/juju/deploy/common.py
# async def do_deploy(msg_cb):
# async def wait_for_applications(msg_cb):


import asyncio
import unittest
from unittest.mock import MagicMock, patch
from conjureup.controllers.juju.deploy import common
from .helpers import AsyncMock, test_loop
#!/usr/bin/env python
#
# tests controllers/deploy/common.py
#
# Copyright 2016 Canonical, Ltd.






class DeployCommonDoDeployTestCase(unittest.TestCase):

    def setUp(self):
        async def dummy():
            pass

        self.app_patcher = patch(
            'conjureup.controllers.deploy.common.app')
        self.mock_app = self.app_patcher.start()
        self.mock_app.ui = MagicMock(name="app.ui")
        self.events_app_patcher = patch('conjureup.events.app', self.mock_app)
        self.events_app_patcher.start()
        self.utils_patcher = patch(
            'conjureup.controllers.deploy.common.utils'
        )
        self.mock_utils = self.utils_patcher.start()
        self.juju_patcher = patch(
            'conjureup.controllers.deploy.common.juju')
        self.mock_juju = self.juju_patcher.start()

# Path: conjureup/controllers/juju/deploy/common.py
# async def do_deploy(msg_cb):
# async def wait_for_applications(msg_cb):


# Path: test/controllers_juju/test_controllers_deploy_common.py
import asyncio
import unittest
from unittest.mock import MagicMock, patch
from conjureup.controllers.juju.deploy import common
from .helpers import AsyncMock, test_loop

#!/usr/bin/env python
#
# tests controllers/deploy/common.py
#
# Copyright 2016 Canonical, Ltd.






class DeployCommonDoDeployTestCase(unittest.TestCase):

    def setUp(self):
        async def dummy():
            pass

        self.app_patcher = patch(
            'conjureup.controllers.deploy.common.app')
        self.mock_app = self.app_patcher.start()
        self.mock_app.ui = MagicMock(name="app.ui")
        self.events_app_patcher = patch('conjureup.events.app', self.mock_app)
        self.events_app_patcher.start()
        self.utils_patcher = patch(
            'conjureup.controllers.deploy.common.utils'
        )
        self.mock_utils = self.utils_patcher.start()
        self.juju_patcher = patch(
            'conjureup.controllers.deploy.common.juju')
        self.mock_juju = self.juju_patcher.start()

        self.mock_app.juju.client.deploy = AsyncMock()