(cls, protocol)
| 630 | |
| 631 | @classmethod |
| 632 | def executable_from_protocol(cls, protocol): |
| 633 | match = cls.match |
| 634 | if protocol in match: |
| 635 | protocol = match[protocol] |
| 636 | if protocol.find("bmr") == -1: |
| 637 | protocol = re.sub("^mal-", "malicious-", protocol) |
| 638 | protocol = re.sub("-online$", "", protocol) |
| 639 | if protocol == "emulate": |
| 640 | return protocol + ".x" |
| 641 | else: |
| 642 | return protocol + "-party.x" |
| 643 | |
| 644 | @classmethod |
| 645 | def short_protocol_name(cls, protocol): |
no test coverage detected