MCPcopy
hub / github.com/django/django / check_output

Method check_output

tests/utils_tests/test_html.py:31–38  ·  view source on GitHub ↗

function(value) equals output. If output is None, function(value) equals value.

(self, function, value, output=None)

Source from the content-addressed store, hash-verified

29@override_settings(URLIZE_ASSUME_HTTPS=True)
30class TestUtilsHtml(SimpleTestCase):
31 def check_output(self, function, value, output=None):
32 """
33 function(value) equals output. If output is None, function(value)
34 equals value.
35 """
36 if output is None:
37 output = value
38 self.assertEqual(function(value), output)
39
40 def test_escape(self):
41 items = (

Callers 6

test_escapeMethod · 0.95
test_linebreaksMethod · 0.95
test_strip_tagsMethod · 0.95
test_escapejsMethod · 0.95
runFunction · 0.80

Calls 1

functionFunction · 0.85

Tested by

no test coverage detected