diff options
author | Koren Lev <korenlev@gmail.com> | 2017-10-10 18:08:39 +0300 |
---|---|---|
committer | Koren Lev <korenlev@gmail.com> | 2017-10-10 18:08:39 +0300 |
commit | 5c6eb170878cefa12f717a62c31f7228d440e61e (patch) | |
tree | 1ac74fe56257a68ccf5a35499ba9e458a9b436ed /app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py | |
parent | a947ad2815cea81e126e7813d718531be414b02c (diff) |
release 1.1 for euphrates
Change-Id: Iddc0e0148db7c72458b7fcdfcb7664e4aa609be0
Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py')
-rw-r--r-- | app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py b/app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py index d9df2ac..ff7b5e3 100644 --- a/app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py +++ b/app/test/fetch/cli_fetch/test_cli_fetch_host_pnics.py @@ -7,6 +7,7 @@ # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # ############################################################################### +import copy import unittest from discover.fetchers.cli.cli_fetch_host_pnics import CliFetchHostPnics @@ -113,20 +114,22 @@ class TestCliFetchHostPnics(TestFetch): self.assertEqual(result, INTERFACE_DETAILS, "Can't get interface details") def test_handle_mac_address_line(self): - self.fetcher.handle_line(RAW_INTERFACE, MAC_ADDRESS_LINE) - self.assertEqual(RAW_INTERFACE["mac_address"], MAC_ADDRESS, - "Can't get the correct mac address") + interface = copy.deepcopy(RAW_INTERFACE) + self.fetcher.handle_line(interface, MAC_ADDRESS_LINE) + self.assertEqual(interface["mac_address"], MAC_ADDRESS, + "Can't get the correct MAC address") # Test failed, defect, result: addr: expected result: fe80::f816:3eff:fea1:eb73/64 - @unittest.SkipTest def test_handle_ipv6_address_line(self): - self.fetcher.handle_line(RAW_INTERFACE, IPV6_ADDRESS_LINE) - self.assertEqual(RAW_INTERFACE['IPv6 Address'], IPV6_ADDRESS, + interface = copy.deepcopy(RAW_INTERFACE) + self.fetcher.handle_line(interface, IPV6_ADDRESS_LINE) + self.assertEqual(interface['IPv6 Address'], IPV6_ADDRESS, "Can't get the correct ipv6 address") def test_handle_ipv4_address_line(self): - self.fetcher.handle_line(RAW_INTERFACE, IPV4_ADDRESS_LINE) - self.assertEqual(RAW_INTERFACE['IP Address'], IPV4_ADDRESS, + interface = copy.deepcopy(RAW_INTERFACE) + self.fetcher.handle_line(interface, IPV4_ADDRESS_LINE) + self.assertEqual(interface['IP Address'], IPV4_ADDRESS, "Can't get the correct ipv4 address") def test_set_interface_data(self): |