~nskaggs/juju-ci-tools/keystone3

« back to all changes in this revision

Viewing changes to tests/test_assess_jes_deploy.py

  • Committer: Martin Packman
  • Date: 2016-02-18 17:52:26 UTC
  • mfrom: (1282.1.1 trunk)
  • Revision ID: martin.packman@canonical.com-20160218175226-b5ls30u787tpzxoj
Better logging for functional jes testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from argparse import Namespace
2
 
import unittest
3
2
from mock import (
4
3
    patch,
5
4
    )
17
16
    JUJU_DEV_FEATURE_FLAGS,
18
17
    SimpleEnvironment,
19
18
)
 
19
import tests
20
20
from tests.test_jujupy import FakeJujuClient
21
21
 
22
22
 
23
 
class TestJES(unittest.TestCase):
 
23
class TestJES(tests.FakeHomeTestCase):
24
24
 
25
25
    client_class = EnvJujuClient25
26
26
 
154
154
        self.assertNotIn('jes', new_client.feature_flags)
155
155
 
156
156
 
157
 
class TestHostedEnvironment(unittest.TestCase):
 
157
class TestHostedEnvironment(tests.FakeHomeTestCase):
158
158
 
159
159
    def test_hosted_environment(self):
160
160
        hosting_client = FakeJujuClient()
161
 
        with hosted_environment(hosting_client, 'bar') as client:
 
161
        with hosted_environment(hosting_client, '/log', 'bar') as client:
162
162
            model_state = client._backing_state
163
163
            self.assertEqual({'name-bar': model_state},
164
164
                             hosting_client._backing_state.models)