beat.web.protocoltemplates.tests module

class beat.web.protocoltemplates.tests.ProtocolTemplateAPIBase(methodName='runTest')[source]

Bases: beat.web.common.testutils.BaseTestCase

PROTOCOLTEMPLATE = {'schema_version': 1, 'sets': [{'name': 'train', 'outputs': {'something': 'system/float/1'}}, {'name': 'template', 'outputs': {'something_else': 'system/float/1'}}]}
DATABASE = {'protocols': [{'name': 'protocol', 'template': 'test_protocol_template/1', 'views': {'train': {'view': 'View', 'parameters': {}}, 'template': {'view': 'View2', 'parameters': {}}}}], 'root_folder': '/path/to/root/folder', 'schema_version': 2}
setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

class beat.web.protocoltemplates.tests.TestListCreationAPI(methodName='runTest')[source]

Bases: beat.web.protocoltemplates.tests.ProtocolTemplateAPIBase

setUp()[source]

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

test_no_access_for_anonymous_user()[source]
test_creation_failure()[source]
test_creation_success()[source]
class beat.web.protocoltemplates.tests.TestUpdateDestroyAPI(methodName='runTest')[source]

Bases: beat.web.protocoltemplates.tests.ProtocolTemplateAPIBase

setUp()[source]

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

test_update()[source]
test_update_failure()[source]
test_delete()[source]
class beat.web.protocoltemplates.tests.TestRetrievalAPI(methodName='runTest')[source]

Bases: beat.web.protocoltemplates.tests.ProtocolTemplateAPIBase

setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_private_retrieval_failure()[source]
test_public_retrieval()[source]