aiida.backends.tests.orm.implementation package

Submodules

Unit tests for the ORM Backend class.

class aiida.backends.tests.orm.implementation.test_backend.TestBackend(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test backend.

__module__ = 'aiida.backends.tests.orm.implementation.test_backend'
test_store_in_transaction()[source]

Test that storing inside a transaction is correctly dealt with.

test_transaction()[source]

Test that transaction nesting works.

test_transaction_nesting()[source]

Test that transaction nesting works.

Unit tests for the BackendComment and BackendCommentCollection classes.

class aiida.backends.tests.orm.implementation.test_comments.TestBackendComment(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test BackendComment.

__module__ = 'aiida.backends.tests.orm.implementation.test_comments'
setUp()[source]

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

classmethod setUpClass(*args, **kwargs)[source]

Hook method for setting up class fixture before running tests in the class.

test_creation()[source]

Test creation of a BackendComment and all its properties.

test_creation_with_time()[source]

Test creation of a BackendComment when passing the mtime and the ctime. The passed ctime and mtime should be respected since it is important for the correct import of nodes at the AiiDA import/export.

Unit tests for the BackendNode and BackendNodeCollection classes.

class aiida.backends.tests.orm.implementation.test_nodes.TestBackendNode(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test BackendNode.

__module__ = 'aiida.backends.tests.orm.implementation.test_nodes'
setUp()[source]

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

classmethod setUpClass(*args, **kwargs)[source]

Hook method for setting up class fixture before running tests in the class.

test_attributes()[source]

Test the attribute properties of a BackendNode.

test_clone()[source]

Test the clone method.

test_computer_methods()[source]

Test the computer methods of a BackendNode.

test_creation()[source]

Test creation of a BackendNode and all its properties.

test_creation_with_time()[source]

Test creation of a BackendNode when passing the mtime and the ctime. The passed ctime and mtime should be respected since it is important for the correct import of nodes at the AiiDA import/export.

test_extras()[source]

Test the extra properties of a BackendNode.

test_property_setters()[source]

Test the property setters of a BackendNode.

test_user_methods()[source]

Test the user methods of a BackendNode.