comments.tests.test_views module

class comments.tests.test_views.TestNewComment(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

install_messages_middleware(request)[source]

Valid Comment gets saved

test_submitting_comment_on_commentary_creates_comment_and_redirects()[source]

Valid Comment gets saved

test_submitting_comment_on_submission_that_is_not_open_for_commenting_should_be_impossible()[source]