Fix unittest.

This commit is contained in:
Alberto Donato
2015-08-19 10:48:04 +03:00
parent e9f85d026d
commit 0810e46a2b

View File

@@ -281,11 +281,13 @@ class TestKeystoneUtils(CharmTestCase):
self.relation_set.assert_called_with(relation_id=relation_id,
**filtered)
@patch('charmhelpers.contrib.openstack.ip.config')
@patch.object(utils, 'ensure_valid_service')
@patch.object(utils, 'add_endpoint')
@patch.object(manager, 'KeystoneManager')
def test_add_service_to_keystone_nosubset(
self, KeystoneManager, add_endpoint, ensure_valid_service):
self, KeystoneManager, add_endpoint, ensure_valid_service,
ip_config):
relation_id = 'identity-service:0'
remote_unit = 'unit/0'