From fd623a5ad242a18510bd1a4b142f54126295a250 Mon Sep 17 00:00:00 2001 From: ziajka Date: Tue, 5 Sep 2017 11:07:10 +0200 Subject: [PATCH] Fix test_ubridge_apply_filters --- tests/compute/test_base_node.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/compute/test_base_node.py b/tests/compute/test_base_node.py index e4825782..cfc39872 100644 --- a/tests/compute/test_base_node.py +++ b/tests/compute/test_base_node.py @@ -14,6 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . +from collections import OrderedDict import pytest import aiohttp @@ -137,10 +138,10 @@ def test_update_ubridge_udp_connection(node, async_run): def test_ubridge_apply_filters(node, async_run): - filters = { - "latency": [10], - "bpf": ["icmp[icmptype] == 8\ntcp src port 53"] - } + filters = OrderedDict(( + ('latency', [10]), + ('bpf', ["icmp[icmptype] == 8\ntcp src port 53"]) + )) node._ubridge_send = AsyncioMagicMock() async_run(node._ubridge_apply_filters("VPCS-10", filters)) node._ubridge_send.assert_any_call("bridge reset_packet_filters VPCS-10")