~gz/juju-ci-tools/assess_jes_dump_logs

« back to all changes in this revision

Viewing changes to tests/test_scale_out.py

  • Committer: Aaron Bentley
  • Date: 2016-02-14 05:21:51 UTC
  • mfrom: (1260.2.30 bootstrap-config)
  • Revision ID: aaron.bentley@canonical.com-20160214052151-k3vqrhbusbh4r7ny
Support cloud-credentials changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
from jujupy import (
11
11
    EnvJujuClient,
12
 
    SimpleEnvironment,
 
12
    JujuData,
13
13
)
14
14
from scale_out import (
15
15
    deploy_charms,
20
20
)
21
21
 
22
22
 
23
 
def fake_SimpleEnvironment(name):
24
 
    return SimpleEnvironment(name, {})
25
 
 
26
 
 
27
23
def fake_EnvJujuClient(env, path=None, debug=None):
28
24
    return EnvJujuClient(env=env, version='1.2.3.4', full_path=path)
29
25
 
32
28
 
33
29
    @contextmanager
34
30
    def fake_client_cxt(self):
35
 
        env = fake_SimpleEnvironment('foo')
 
31
        env = JujuData('foo', {})
36
32
        client = fake_EnvJujuClient(env)
37
33
        bv_cxt = patch('jujupy.EnvJujuClient.by_version',
38
34
                       return_value=client)