Fix more imports.

This commit is contained in:
Alberto Donato
2015-08-25 17:59:31 +03:00
parent 5440ba8c4a
commit 53858d418c
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import glance_contexts as contexts
from hooks import glance_contexts as contexts
from mock import patch, MagicMock
from test_utils import (
@@ -86,7 +86,7 @@ class TestGlanceContexts(CharmTestCase):
mock_unit_get.assert_called_with('private-address')
@patch('charmhelpers.contrib.openstack.context.config')
@patch('glance_contexts.config')
@patch('hooks.glance_contexts.config')
def test_glance_ipv6_context_service_enabled(self, mock_config,
mock_context_config):
mock_config.return_value = True
@@ -96,7 +96,7 @@ class TestGlanceContexts(CharmTestCase):
'registry_host': '[::]'})
@patch('charmhelpers.contrib.openstack.context.config')
@patch('glance_contexts.config')
@patch('hooks.glance_contexts.config')
def test_glance_ipv6_context_service_disabled(self, mock_config,
mock_context_config):
mock_config.return_value = False