def test_priv_proto_unknown(proto): with pytest.raises(MKGeneralException): classic_snmp._priv_proto_for(proto)
def test_priv_proto(proto, result): assert classic_snmp._priv_proto_for(proto) == result