MCPcopy
hub / github.com/liangliangyy/DjangoBlog / check_pagination

Method check_pagination

blog/tests.py:151–160  ·  view source on GitHub ↗
(self, p, type, value)

Source from the content-addressed store, hash-verified

149 self.client.get('/admin/admin/logentry/1/change/')
150
151 def check_pagination(self, p, type, value):
152 for page in range(1, p.num_pages + 1):
153 s = load_pagination_info(p.page(page), type, value)
154 self.assertIsNotNone(s)
155 if s['previous_url']:
156 response = self.client.get(s['previous_url'])
157 self.assertEqual(response.status_code, 200)
158 if s['next_url']:
159 response = self.client.get(s['next_url'])
160 self.assertEqual(response.status_code, 200)
161
162 def test_image(self):
163 import requests

Callers 1

test_validate_articleMethod · 0.95

Calls 2

load_pagination_infoFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected