(self)
| 115 | self.assertPolicyEqual(build_policy(basic_config, nonce="abc123"), basic_policy) |
| 116 | |
| 117 | def test_config_with_nonce(self): |
| 118 | policy = {"default-src": [CSP.SELF, CSP.NONCE]} |
| 119 | self.assertPolicyEqual( |
| 120 | build_policy(policy, nonce="abc123"), |
| 121 | "default-src 'self' 'nonce-abc123'", |
| 122 | ) |
| 123 | |
| 124 | def test_config_with_multiple_nonces(self): |
| 125 | policy = { |
nothing calls this directly
no test coverage detected