diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2017-11-15 10:53:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-15 10:53:08 +0000 |
commit | 6f56dae69bd4ec71b9e09869f167c389c7939c8c (patch) | |
tree | 2e3844391853cd985329b1d9f496475b62981268 | |
parent | 10ff40bdfe462d4c6e77f48683d10b4f52b152e0 (diff) | |
parent | 14d96c8b08ca40218476168f45d78cd7e6c8c276 (diff) |
Merge "Update unit test related to vyos_vrouter"
-rw-r--r-- | functest/tests/unit/vnf/router/test_cloudify_vrouter.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/functest/tests/unit/vnf/router/test_cloudify_vrouter.py b/functest/tests/unit/vnf/router/test_cloudify_vrouter.py index 4f256234..4d8e9405 100644 --- a/functest/tests/unit/vnf/router/test_cloudify_vrouter.py +++ b/functest/tests/unit/vnf/router/test_cloudify_vrouter.py @@ -18,7 +18,11 @@ from functest.opnfv_tests.vnf.router import cloudify_vrouter class CloudifyVrouterTesting(unittest.TestCase): - def setUp(self): + @mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.Utilvnf') + @mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.vrouter_base' + '.Utilvnf') + @mock.patch('os.makedirs') + def setUp(self, *args): self.tenant = 'cloudify_vrouter' self.creds = {'username': 'user', @@ -41,14 +45,12 @@ class CloudifyVrouterTesting(unittest.TestCase): 'ram_min': 2048}}}} with mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.' - 'os.makedirs'), \ - mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.' - 'get_config', return_value={ - 'tenant_images': 'foo', - 'orchestrator': self.orchestrator, - 'vnf': self.vnf, - 'vnf_test_suite': '', - 'version': 'whatever'}): + 'get_config', return_value={ + 'tenant_images': 'foo', + 'orchestrator': self.orchestrator, + 'vnf': self.vnf, + 'vnf_test_suite': '', + 'version': 'whatever'}): self.router_vnf = cloudify_vrouter.CloudifyVrouter() |