Skip to content

Commit

Permalink
changing few files
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantSinghhhhh committed Jan 11, 2025
1 parent 1530c74 commit dbf3155
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions tests/switchmap_/dashboard/net/html/pages/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,14 @@ def test_interfaces(self):
"""Testing function interfaces."""
# Initialize key variables
expected = """<table class="table">
<thead><tr><th>Port</th><th>VLAN</th><th>State</th><th>Days Inactive</th><th>Speed</th><th>Duplex</th><th>Port Label</th><th>Trunk</th><th>CDP</th><th>LLDP</th><th>Mac Address</th><th>Manufacturer</th><th>IP Address</th><th>DNS Name</th></tr></thead>
<thead><tr><th>Port</th><th>VLAN</th><th>State</th><th>Days Inactive</th><th>\
Speed</th><th>Duplex</th><th>Port Label</th><th>Trunk</th><th>CDP</th><th>LLDP\
</th><th>Mac Address</th><th>Manufacturer</th><th>IP Address</th><th>DNS Name\
</th></tr></thead>
<tbody>
<tr class="success"><td>Gi1/0/1</td><td>21</td><td>Active</td><td></td><td>1G</td><td>Full</td><td>Alias F12</td><td>False</td><td></td><td></td><td>d05099dad28b</td><td></td><td><p></p></td><td><p></p></td></tr>
<tr class="success"><td>Gi1/0/1</td><td>21</td><td>Active</td><td></td><td>1G\
</td><td>Full</td><td>Alias F12</td><td>False</td><td></td><td></td>\
<td>d05099dad28b</td><td></td><td><p></p></td><td><p></p></td></tr>
</tbody>
</table>"""
result = self.device.interfaces()
Expand All @@ -178,10 +183,14 @@ def test_system(self):
<tbody>
<tr><td>System Name</td><td>device-01.example.org</td></tr>
<tr><td>System Hostname</td><td>device-01.example.org</td></tr>
<tr><td>System Description</td><td>Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version<br>15.0(2)SE11, RELEASE SOFTWARE (fc3) Technical Support:<br>http://www.cisco.com/techsupport Copyright (c) 1986-2017 by Cisco<br>Systems, Inc. Compiled Sat 19-Aug-17 08:39 by prod_rel_team</td></tr>
<tr><td>System Description</td><td>Cisco IOS Software, C3750E Software \
(C3750E-UNIVERSALK9-M), Version<br>15.0(2)SE11, RELEASE SOFTWARE (fc3) \
Technical Support:<br>http://www.cisco.com/techsupport Copyright (c) \
1986-2017 by Cisco<br>Systems, Inc. Compiled Sat 19-Aug-17 08:39 by \
prod_rel_team</td></tr>
<tr><td>System sysObjectID</td><td>.1.3.6.1.4.1.9.1.516</td></tr>
<tr><td>System Uptime</td><td>94 Days, 18:39:06</td></tr>
<tr><td>Time Last Polled</td><td>2023-02-23 15:13:37</td></tr>
<tr><td>Time Last Polled</td><td>2023-02-23 23:13:37</td></tr>
</tbody>
</table>"""
result = self.device.system()
Expand Down Expand Up @@ -285,4 +294,4 @@ def test___init__(self):

if __name__ == "__main__":
# Do the unit test
unittest.main()
unittest.main()

0 comments on commit dbf3155

Please sign in to comment.