MCPcopy Create free account
hub / github.com/django-request/django-request / test_day

Method test_day

tests/test_managers.py:139–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 self.assertIsNone(qs)
138
139 def test_day(self):
140 qs = Request.objects.all().day(date=now())
141 self.assertEqual(1, qs.count())
142 qs = Request.objects.all().day(date=now() - timedelta(days=3))
143 self.assertEqual(0, qs.count())
144
145 def test_day_without_date(self):
146 qs = Request.objects.all().day(

Callers

nothing calls this directly

Calls 2

dayMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected