Skip to content

Commit

Permalink
Added unit test for the scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
acelebanski committed Apr 12, 2024
1 parent 8bde06b commit 92c7d1c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_firewall_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,17 @@ def test_get_bgp_peers(self, fw_proxy_mock):
}
}

def test_get_bgp_peers_no_peers(self, fw_proxy_mock):
xml_text = """
<response status="success">
<result/>
</response>
"""
raw_response = ET.fromstring(xml_text)
fw_proxy_mock.op.return_value = raw_response

assert fw_proxy_mock.get_bgp_peers() == {}

def test_get_arp_table(self, fw_proxy_mock):
xml_text = """
<response status="success">
Expand Down

0 comments on commit 92c7d1c

Please sign in to comment.