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

Method test_hp_ilo_software

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

Source from the content-addressed store, hash-verified

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
202 # common
203 s = ps('SSH-2.0-mpSSH_0.2.1')
204 assert s.vendor == 'HP'
205 assert s.product == 'iLO (Integrated Lights-Out) sshd'
206 assert s.version == '0.2.1'
207 assert s.patch is None
208 assert s.os is None
209 assert str(s) == 'HP iLO (Integrated Lights-Out) sshd 0.2.1'
210 assert str(s) == s.display()
211 assert s.display(True) == str(s)
212 assert s.display(False) == str(s)
213 assert repr(s) == '<Software(vendor=HP, product=iLO (Integrated Lights-Out) sshd, version=0.2.1)>'
214
215 def test_cisco_software(self):
216 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