MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / TestSSH001

Class TestSSH001

tests/unit/test_missing_rules.py:189–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187# ============================================================
188
189class TestSSH001:
190 def test_auto_add_policy_fires(self):
191 code = "client.set_missing_host_key_policy(paramiko.AutoAddPolicy())"
192 assert fires(code, "SSH001"), "SSH001 must fire: AutoAddPolicy()"
193
194 def test_reject_policy_safe(self):
195 code = "client.set_missing_host_key_policy(paramiko.RejectPolicy())"
196 assert not_fires(code, "SSH001"), "SSH001 must NOT fire for RejectPolicy"
197
198
199# ============================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected