repository.tests.test_controllers module

Tests for repository.controllers.

class repository.tests.test_controllers.ControllerTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

class repository.tests.test_controllers.TestGetEPrintEvents(methodName='runTest')[source]

Bases: repository.tests.test_controllers.ControllerTestCase

Tests for controllers.get_eprint_events().

test_request_for_existant_eprint(mock_RepositoryService)[source]

A request is received for an existant e-print.

test_request_for_nonexistant_eprint(mock_RepositoryService)[source]

A request is received for a nonexistant e-print.

class repository.tests.test_controllers.TestGetEPrintPDF(methodName='runTest')[source]

Bases: repository.tests.test_controllers.ControllerTestCase

Tests for controllers.get_eprint_pdf().

test_request_for_existant_eprint(mock_RepositoryService)[source]

A request is received for an existant e-print.

test_request_for_nonexistant_eprint(mock_RepositoryService)[source]

A request is received for a nonexistant e-print.