(self)
| 42 | assert not _SAFE_CSP_SOURCE.match('https://evil.com" onclick=bad()') |
| 43 | |
| 44 | def test_angle_bracket_rejected(self): |
| 45 | assert not _SAFE_CSP_SOURCE.match("<script>alert(1)</script>") |
| 46 | |
| 47 | def test_space_injection_rejected(self): |
| 48 | assert not _SAFE_CSP_SOURCE.match("evil.com script-src *") |
nothing calls this directly
no outgoing calls
no test coverage detected