From 75ec853fc15780c5e00f2211cb0b095e3be7e48f Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Wed, 4 Feb 2015 00:50:02 +0530 Subject: fix unit test error for network.py Change-Id: I9eae0c1857ab0a0c7c47123aeef8c39696f014a0 Signed-off-by: Timothy Asir Reviewed-on: http://review.gluster.org/9570 Reviewed-by: Ramesh N Reviewed-by: Shubhendu Tripathi Tested-by: Timothy Asir --- tests/test_network.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_network.py b/tests/test_network.py index 13a5925..85535b3 100644 --- a/tests/test_network.py +++ b/tests/test_network.py @@ -97,7 +97,7 @@ interfaces = {'em1': {'flags': None, 'ipaddr': None}, class networkTests(TestCaseBase): @mock.patch('plugins.network._getNetworkInterfaces') def test_network_default(self, _getNetworkInterfaces_mock): - expected = (0, "OK: tun0:UP,virbr0:UP,enp0s29u1u2:UP |" + expected = (0, "OK: tun0:UP,virbr0:DOWN,enp0s29u1u2:UP |" "tun0.rxpck=0.10 tun0.txpck=0.08 " "tun0.rxkB=0.01 tun0.txkB=0.01 " "virbr0.rxpck=0.00 virbr0.txpck=0.00 " @@ -112,7 +112,7 @@ class networkTests(TestCaseBase): @mock.patch('plugins.network._getNetworkInterfaces') def test_network_all(self, _getNetworkInterfaces_mock): expected = (0, "OK: tun0:UP,wlp3s0:DOWN,lo:UP,virbr0-nic:DOWN," - "virbr0:UP,enp0s29u1u2:UP,em1:DOWN |" + "virbr0:DOWN,enp0s29u1u2:UP,em1:DOWN |" "tun0.rxpck=0.10 tun0.txpck=0.08 " "tun0.rxkB=0.01 tun0.txkB=0.01 " "wlp3s0.rxpck=0.00 wlp3s0.txpck=0.00 " @@ -146,7 +146,7 @@ class networkTests(TestCaseBase): @mock.patch('plugins.network._getNetworkInterfaces') def test_network_excludes(self, _getNetworkInterfaces_mock): - expected = (0, "OK: virbr0:UP,enp0s29u1u2:UP |" + expected = (0, "OK: virbr0:DOWN,enp0s29u1u2:UP |" "virbr0.rxpck=0.00 virbr0.txpck=0.00 " "virbr0.rxkB=0.00 virbr0.txkB=0.00 " "enp0s29u1u2.rxpck=1.15 enp0s29u1u2.txpck=1.65 " -- cgit