Show More
@@ -115,7 +115,7 b' class PostTests(TestCase):' | |||
|
115 | 115 | |
|
116 | 116 | all_threads = Post.objects.get_threads() |
|
117 | 117 | |
|
118 |
posts_in_second_page = Post.objects.get_threads(page= |
|
|
118 | posts_in_second_page = Post.objects.get_threads(page=2) | |
|
119 | 119 | first_post = posts_in_second_page[0] |
|
120 | 120 | |
|
121 | 121 | self.assertEqual(all_threads[settings.THREADS_PER_PAGE].id, |
@@ -230,4 +230,4 b' class ViewTest(TestCase):' | |||
|
230 | 230 | self.assertEqual(HTTP_CODE_OK, response.status_code, 'Index page not ' |
|
231 | 231 | 'opened') |
|
232 | 232 | self.assertEqual('boards/posting_general.html', response.templates[0] |
|
233 | .name, 'Index page should open posting_general template') No newline at end of file | |
|
233 | .name, 'Index page should open posting_general template') |
General Comments 0
You need to be logged in to leave comments.
Login now