Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed Oct 22, 2021
1 parent fe622b2 commit 61d85fb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/tunnelstat_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import clear.main as clear
import show.main as show
from .mock_tables import dbconnector
import sys
import os
import traceback
Expand All @@ -10,24 +13,20 @@
sys.path.insert(0, test_path)
sys.path.insert(0, modules_path)

from .mock_tables import dbconnector

import show.main as show
import clear.main as clear

show_vxlan_counters_output="""\
show_vxlan_counters_output = """\
IFACE RX_PKTS RX_BYTES RX_PPS TX_PKTS TX_BYTES TX_PPS
------- --------- ---------- ---------- --------- ---------- --------
vtep1 452 81922 20523.00/s 154 23434 201.00/s
"""

show_vxlan_counters_clear_output="""\
show_vxlan_counters_clear_output = """\
IFACE RX_PKTS RX_BYTES RX_PPS TX_PKTS TX_BYTES TX_PPS
------- --------- ---------- ---------- --------- ---------- --------
vtep1 0 0 20523.00/s 0 0 201.00/s
"""

show_vxlan_counters_interface_output="""\
show_vxlan_counters_interface_output = """\
vtep1
-----
Expand All @@ -39,7 +38,7 @@
23434 bytes
"""

show_vxlan_counters_clear_interface_output="""\
show_vxlan_counters_clear_interface_output = """\
vtep1
-----
Expand All @@ -50,6 +49,8 @@
0 packets
0 bytes
"""


class TestTunnelstat(object):
@classmethod
def setup_class(cls):
Expand All @@ -72,7 +73,6 @@ def test_single_tunnel(self):
expected = show_vxlan_counters_interface_output
assert result.output == expected


def test_clear(self):
runner = CliRunner()
result = runner.invoke(clear.cli.commands["tunnelcounters"], [])
Expand Down

0 comments on commit 61d85fb

Please sign in to comment.