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

Method count

tests/pagination/tests.py:218–219  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 def test_paginate_misc_classes(self):
217 class CountContainer:
218 def count(self):
219 return 42
220
221 # Paginator can be passed other objects with a count() method.
222 paginator = Paginator(CountContainer(), 10)

Calls

no outgoing calls

Tested by

no test coverage detected