aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-07-16 16:57:42 +0100
committerEmma Foley <emma.l.foley@intel.com>2018-12-06 16:15:00 +0000
commit31cabd901861cce91877aac045622f9946bd3664 (patch)
tree682f8efc9ff939cc8dca7282b08e034f144c5fb9
parenta8a59b333db0b2aa1e3a9f3ee8002096fb92b3f1 (diff)
Suppress log outputs in test_ixnet_api
JIRA: YARDSTICK-1541 Change-Id: Icee1ec0fb9e8eea6c89c6c513fe87ff49a3cb3d4 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
-rw-r--r--yardstick/tests/unit/network_services/libs/ixia_libs/test_ixnet_api.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yardstick/tests/unit/network_services/libs/ixia_libs/test_ixnet_api.py b/yardstick/tests/unit/network_services/libs/ixia_libs/test_ixnet_api.py
index 5e2578b1f..a9cd4f620 100644
--- a/yardstick/tests/unit/network_services/libs/ixia_libs/test_ixnet_api.py
+++ b/yardstick/tests/unit/network_services/libs/ixia_libs/test_ixnet_api.py
@@ -103,6 +103,12 @@ class TestIxNextgen(unittest.TestCase):
self.ixnet.getRoot.return_value = 'my_root'
self.ixnet_gen = ixnet_api.IxNextgen()
self.ixnet_gen._ixnet = self.ixnet
+ self._mock_log = mock.patch.object(ixnet_api.log, 'info')
+ self.mock_log = self._mock_log.start()
+ self.addCleanup(self._stop_mocks)
+
+ def _stop_mocks(self):
+ self.mock_log.stop()
def test_get_config(self):
tg_cfg = {