Skip to content

Commit 27461e7

Browse files
committed
tmp1
1 parent eb8911e commit 27461e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/fdbshow_test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,21 @@ def test_show_mac_address_type(self):
387387
assert return_code == 0
388388
assert result == show_mac__address_type_output
389389

390+
def test_show_mac_namespace(self):
391+
self.set_mock_variant("1")
392+
393+
result = self.runner.invoke(show.cli.commands["mac"], "-n asic0")
394+
print(result.exit_code)
395+
print(result.output)
396+
assert result.exit_code == 0
397+
assert result.output == show_mac_output
398+
399+
return_code, result = get_result_and_return_code(['fdbshow', '-n', 'asic0'])
400+
print("return_code: {}".format(return_code))
401+
print("result = {}".format(result))
402+
assert return_code == 0
403+
assert result == show_mac_output
404+
390405
def test_show_mac_port_vlan_address_type(self):
391406
self.set_mock_variant("1")
392407

0 commit comments

Comments
 (0)