Skip to content

Commit 986a868

Browse files
author
gupurush
committed
add print vendor test
1 parent 11842e2 commit 986a868

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/decode_syseeprom_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ def test_print_model(self, capsys):
194194
captured = capsys.readouterr()
195195
assert captured.out == 'S6100-ON\n'
196196

197+
def test_print_vendor(self, capsys):
198+
decode_syseeprom.print_vendor(True)
199+
captured = capsys.readouterr()
200+
assert captured.out == 'DELL\n'
201+
197202
@mock.patch('os.geteuid', lambda: 0)
198203
@mock.patch('sonic_py_common.device_info.get_platform', lambda: 'arista')
199204
@mock.patch.object(sys, 'argv', ["decode-syseeprom"])

0 commit comments

Comments
 (0)