~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to tests/test_verify_landscape_bundle.py

  • Committer: Curtis Hovey
  • Date: 2015-06-16 13:54:07 UTC
  • mto: This revision was merged to the branch mainline in revision 991.
  • Revision ID: curtis@canonical.com-20150616135407-xzq45ixl2xqqooli
Always collect logs from quickstart and deployer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from mock import (
2
 
    patch,
3
 
)
4
 
 
5
 
import tests
6
 
from tests.test_jujupy import fake_juju_client
7
 
from verify_landscape_bundle import(
8
 
    assess_landscape_bundle,
9
 
)
10
 
 
11
 
 
12
 
class TestVerifyLandscapeBundle(tests.TestCase):
13
 
 
14
 
    def test_assert_landscape_bundle(self):
15
 
        client = fake_juju_client()
16
 
        services = ['haproxy', 'landscape-server', 'postgresql',
17
 
                    'rabbitmq-server']
18
 
        with patch('verify_landscape_bundle.verify_services',
19
 
                   autospec=True) as vs_mock:
20
 
            assess_landscape_bundle(client)
21
 
        vs_mock.assert_called_once_with(client, services, scheme='https',
22
 
                                        text='Landscape', haproxy_exposed=True)