Skip to content

Commit

Permalink
Add CiscoInterface() test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 13, 2023
1 parent d27692a commit 66bf344
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_Ccp_Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,16 @@ def test_CiscoInterface_06():
assert uut.subinterface == 5
assert uut.channel is None

def test_CiscoInterface_07():
"""Check that a card, slot, port, subinterface, and channel is parsed correctly"""
uut = CiscoInterface("Ethernet1/3/42.5:9")
assert uut.prefix == "Ethernet"
assert uut.card == 1
assert uut.slot == 3
assert uut.port == 42
assert uut.subinterface == 5
assert uut.channel == 9

def test_CiscoRange_01():
"""Basic vlan range test"""
result_correct = set({"1",})
Expand Down

0 comments on commit 66bf344

Please sign in to comment.