aboutsummaryrefslogtreecommitdiffstats
path: root/app/test/fetch/db_fetch/test_db_fetch_oteps.py
diff options
context:
space:
mode:
authorKoren Lev <korenlev@gmail.com>2017-10-10 18:08:39 +0300
committerKoren Lev <korenlev@gmail.com>2017-10-10 18:08:39 +0300
commit5c6eb170878cefa12f717a62c31f7228d440e61e (patch)
tree1ac74fe56257a68ccf5a35499ba9e458a9b436ed /app/test/fetch/db_fetch/test_db_fetch_oteps.py
parenta947ad2815cea81e126e7813d718531be414b02c (diff)
release 1.1 for euphrates
Change-Id: Iddc0e0148db7c72458b7fcdfcb7664e4aa609be0 Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'app/test/fetch/db_fetch/test_db_fetch_oteps.py')
-rw-r--r--app/test/fetch/db_fetch/test_db_fetch_oteps.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/test/fetch/db_fetch/test_db_fetch_oteps.py b/app/test/fetch/db_fetch/test_db_fetch_oteps.py
index a161e03..7090638 100644
--- a/app/test/fetch/db_fetch/test_db_fetch_oteps.py
+++ b/app/test/fetch/db_fetch/test_db_fetch_oteps.py
@@ -88,8 +88,10 @@ class TestDbFetchOteps(TestFetch):
test_case["err_msg"])
def test_get_vconnectors(self):
- self.fetcher.run_fetch_lines = MagicMock(return_value=IFCONFIG_LINES)
- self.fetcher.get_vconnector(OTEP_FOR_GETTING_VECONNECTOR,
+ self.fetcher.run_fetch_lines = \
+ MagicMock(return_value=IP_ADDRESS_SHOW_LINES)
+ otep_to_get_vconnector = copy.deepcopy(OTEP_FOR_GETTING_VECONNECTOR)
+ self.fetcher.get_vconnector(otep_to_get_vconnector,
HOST_ID, VEDGE)
- self.assertEqual(OTEP_FOR_GETTING_VECONNECTOR, OTEP_WITH_CONNECTOR,
+ self.assertEqual(otep_to_get_vconnector, OTEP_WITH_CONNECTOR,
"Can't get vconnector from the config lines for otep")