commentaries.tests.test_forms module

class commentaries.tests.test_forms.TestArxivQueryForm(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

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

test_new_arxiv_identifier_is_valid()[source]
test_old_arxiv_identifier_is_valid()[source]
test_invalid_arxiv_identifier()[source]
test_new_arxiv_identifier_without_version_number_is_invalid()[source]
test_old_arxiv_identifier_without_version_number_is_invalid()[source]
test_arxiv_identifier_that_already_has_commentary_page_is_invalid()[source]
test_valid_but_non_existent_identifier_is_invalid()[source]
class commentaries.tests.test_forms.TestDOIToQueryForm(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

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

test_invalid_doi_is_invalid()[source]
test_doi_that_already_has_commentary_page_is_invalid()[source]
test_physrev_doi_is_valid()[source]
test_scipost_doi_is_valid()[source]
test_old_doi_is_valid()[source]
test_valid_but_nonexistent_doi_is_invalid()[source]
class commentaries.tests.test_forms.TestVetCommentaryForm(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

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

test_valid_accepted_form()[source]

Test valid form data and return Commentary

test_valid_modified_form()[source]

Test valid form data and delete Commentary

test_valid_rejected_form()[source]

Test valid form data and delete Commentary

test_process_before_validation()[source]

Test response of form on processing before validation

class commentaries.tests.test_forms.TestRequestPublishedArticleForm(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

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

test_valid_data_is_valid()[source]

Test valid form for DOI

test_doi_that_already_has_commentary_page_is_invalid()[source]
test_commentary_without_pub_DOI_is_invalid()[source]
class commentaries.tests.test_forms.TestRequestArxivPreprintForm(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]

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

test_valid_data_is_valid()[source]
test_identifier_that_already_has_commentary_page_is_invalid()[source]
test_commentary_without_arxiv_identifier_is_invalid()[source]