fix: unit test lint errors

This commit is contained in:
Subbarayudu Mukkamala 2015-04-10 06:09:52 -07:00
parent 2ab51d4272
commit 52bc2e4ec5
2 changed files with 1 additions and 4 deletions

View File

@ -419,7 +419,6 @@ class NeutronCCContextTest(CharmTestCase):
for key in expect.iterkeys():
self.assertEquals(napi_ctxt[key], expect[key])
@patch.object(context.NeutronCCContext, 'network_manager')
@patch.object(context.NeutronCCContext, 'plugin')
@patch('__builtin__.__import__')

View File

@ -114,7 +114,7 @@ class NeutronAPIHooksTests(CharmTestCase):
self.test_config.set('neutron-plugin', 'vsp')
self.test_config.set('vsp-packages', vsp_packages)
self.test_config.set('neutron-plugin-repository-url',
"deb http://10.14.4.1/nuage trusty main")
"deb http://10.14.4.1/nuage trusty main")
_pkgs = ['foo', 'bar']
_expected_pkgs = list(_pkgs)
_expected_pkgs.append(vsp_packages)
@ -309,7 +309,6 @@ class NeutronAPIHooksTests(CharmTestCase):
)
def test_vsd_api_relation_changed(self):
#self.test_config.set('vsd-config-file', './vsd_config_test.ini')
self.test_config.set('neutron-plugin', 'vsp')
self.test_relation.set({
'vsd-ip-address': '10.11.12.13',
@ -318,7 +317,6 @@ class NeutronAPIHooksTests(CharmTestCase):
self.assertTrue(self.update_config_file.called)
self.save_vsd_address_to_config.assert_called_with('10.11.12.13:8443')
def test_neutron_api_relation_changed(self):
self.CONFIGS.complete_contexts.return_value = ['shared-db']
self._call_hook('neutron-api-relation-changed')