Beispiel #1
0
    def test_displays_last_page_on_request(self):
        response = views.list_comments(self.get_request(data={'p': 'last'}), self.get_context())

        tools.assert_equals([], response.context_data['comment_list'])
Beispiel #2
0
    def test_displays_last_page_on_request(self):
        response = views.list_comments(self.get_request(data={'p': 'last'}), self.get_context())

        tools.assert_equals([], response.context_data['comment_list'])
Beispiel #3
0
    def test_empty_list_returned_with_no_comments(self):
        response = views.list_comments(self.get_request(), self.get_context())

        tools.assert_equals([], response.context_data['comment_list'])
Beispiel #4
0
    def test_empty_list_returned_with_no_comments(self):
        response = views.list_comments(self.get_request(), self.get_context())

        tools.assert_equals([], response.context_data['comment_list'])