~openstack-charmers/charms/trusty/cinder/trunk

« back to all changes in this revision

Viewing changes to unit_tests/test_actions_openstack_upgrade.py

  • Committer: Corey Bryant
  • Date: 2015-11-03 14:07:54 UTC
  • mfrom: (97.2.15 stable/16.07.remote)
  • Revision ID: corey.bryant@canonical.com-20151103140754-bfrfiys6zh697avo
[james-pages,r=corey.bryant] Add tox support for lint and unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
os.environ['JUJU_UNIT_NAME'] = 'cinder'
5
5
 
6
 
with patch('cinder_utils.register_configs') as register_configs:
7
 
    import openstack_upgrade
8
 
 
9
6
from test_utils import (
10
 
    CharmTestCase
 
7
    CharmTestCase,
 
8
    RESTART_MAP
11
9
)
12
10
 
 
11
with patch('cinder_utils.register_configs') as register_configs:
 
12
    with patch('cinder_utils.restart_map') as restart_map:
 
13
        restart_map.return_value = RESTART_MAP
 
14
        import openstack_upgrade
 
15
 
13
16
TO_PATCH = [
14
17
    'config_changed',
15
18
    'do_openstack_upgrade',