MCPcopy
hub / github.com/django/django / count

Method count

django/test/html.py:160–161  ·  view source on GitHub ↗
(self, element)

Source from the content-addressed store, hash-verified

158 return self._count(element, count=False) > 0
159
160 def count(self, element):
161 return self._count(element, count=True)
162
163 def __getitem__(self, key):
164 return self.children[key]

Callers 15

sanitize_separatorsFunction · 0.45
strip_tagsFunction · 0.45
__missing__Method · 0.45
_parseparamFunction · 0.45
parse_header_parametersFunction · 0.45
templatizeFunction · 0.45
_countMethod · 0.45
_assert_containsMethod · 0.45
_assert_template_usedMethod · 0.45
assertInHTMLMethod · 0.45
__len__Method · 0.45
tokenizeMethod · 0.45

Calls 1

_countMethod · 0.95

Tested by 5

_assert_containsMethod · 0.36
_assert_template_usedMethod · 0.36
assertInHTMLMethod · 0.36
test_with_failuresMethod · 0.36
test_skipped_checksMethod · 0.36