(fixtures, fuzzy_rule_match)
| 1 | |
| 2 | def test_crypto(fixtures, fuzzy_rule_match): |
| 3 | matches = [ |
| 4 | { |
| 5 | 'type': 'CryptoKeyGeneration', |
| 6 | 'extra': { |
| 7 | 'function': 'cryptography.hazmat.primitives.asymmetric.dsa.generate_private_key', |
| 8 | 'key_type': 'dsa', |
| 9 | 'key_size': 1024 |
| 10 | } |
| 11 | }, |
| 12 | { |
| 13 | 'type': 'CryptoKeyGeneration', |
| 14 | 'extra': { |
| 15 | 'function': 'Crypto.PublicKey.RSA.generate', |
| 16 | 'key_type': 'rsa', |
| 17 | 'key_size': 1024 |
| 18 | } |
| 19 | } |
| 20 | ] |
| 21 | |
| 22 | fixtures.scan_and_match("crypto.py", matches) |
nothing calls this directly
no test coverage detected