Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_separators
Function · 0.45
strip_tags
Function · 0.45
__missing__
Method · 0.45
_parseparam
Function · 0.45
parse_header_parameters
Function · 0.45
templatize
Function · 0.45
_count
Method · 0.45
_assert_contains
Method · 0.45
_assert_template_used
Method · 0.45
assertInHTML
Method · 0.45
__len__
Method · 0.45
tokenize
Method · 0.45
Calls
1
_count
Method · 0.95
Tested by
5
_assert_contains
Method · 0.36
_assert_template_used
Method · 0.36
assertInHTML
Method · 0.36
test_with_failures
Method · 0.36
test_skipped_checks
Method · 0.36