MCPcopy
hub / github.com/jtesta/ssh-audit / test_romsshell_software

Method test_romsshell_software

test/test_software.py:185–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 assert repr(s) == '<Software(product=libssh, version=0.7.4)>'
184
185 def test_romsshell_software(self):
186 ps = lambda x: self.software.parse(self.banner.parse(x)) # noqa
187 # common
188 s = ps('SSH-2.0-RomSShell_5.40')
189 assert s.vendor == 'Allegro Software'
190 assert s.product == 'RomSShell'
191 assert s.version == '5.40'
192 assert s.patch is None
193 assert s.os is None
194 assert str(s) == 'Allegro Software RomSShell 5.40'
195 assert str(s) == s.display()
196 assert s.display(True) == str(s)
197 assert s.display(False) == str(s)
198 assert repr(s) == '<Software(vendor=Allegro Software, product=RomSShell, version=5.40)>'
199
200 def test_hp_ilo_software(self):
201 ps = lambda x: self.software.parse(self.banner.parse(x)) # noqa

Callers

nothing calls this directly

Calls 2

displayMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected