Test when the `CSP.NONCE` is not in the defined policy, the nonce argument has no effect.
(self)
| 108 | ) |
| 109 | |
| 110 | def test_config_with_nonce_arg(self): |
| 111 | """ |
| 112 | Test when the `CSP.NONCE` is not in the defined policy, the nonce |
| 113 | argument has no effect. |
| 114 | """ |
| 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]} |
nothing calls this directly
no test coverage detected