MCPcopy
hub / github.com/django/django / test_config_value_as_string

Method test_config_value_as_string

tests/utils_tests/test_csp.py:52–57  ·  view source on GitHub ↗

Test that a single value can be passed as a string.

(self)

Source from the content-addressed store, hash-verified

50 )
51
52 def test_config_value_as_string(self):
53 """
54 Test that a single value can be passed as a string.
55 """
56 policy = {"default-src": CSP.SELF}
57 self.assertPolicyEqual(build_policy(policy), "default-src 'self'")
58
59 def test_config_value_as_tuple(self):
60 """

Callers

nothing calls this directly

Calls 2

assertPolicyEqualMethod · 0.95
build_policyFunction · 0.90

Tested by

no test coverage detected