aiida.backends.tests.orm.data package

Submodules

Tests for the Dat ORM class.

Bases: aiida.backends.testbase.AiidaTestCase

Test for linking from and to Data nodes.

__module__ = 'aiida.backends.tests.orm.data.test_data'
setUp()[source]

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

test_validate_incoming()[source]

Test the validate_incoming method

For a Data node all incoming link types are valid as long as the source is also of type Node and the link type is a valid LinkType enum value.

test_validate_outgoing()[source]

Test the validate_outgoing method

For a Data node all outgoing link types are valid as long as the source is also of type Node and the link type is a valid LinkType enum value.

class aiida.backends.tests.orm.data.test_remote.TestRemoteData(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test for the RemoteData class.

__module__ = 'aiida.backends.tests.orm.data.test_remote'
setUp()[source]

Create a dummy RemoteData on the default computer.

classmethod setUpClass()[source]

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

tearDown()[source]

Delete the temporary path for the dummy RemoteData node.

test_clean()[source]

Try cleaning a RemoteData node.

This module contains tests for UpfData and UpfData related functions.

class aiida.backends.tests.orm.data.test_upf.TestUpfParser(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Tests UPF version / element_name parser function.

__module__ = 'aiida.backends.tests.orm.data.test_upf'
setUp()[source]

Setup a temporary directory to store UPF files.

tearDown()[source]

Destroy the temporary directory created.

test_additional_header_line()[source]

Check if parsing succeeds if additional header line is present.

test_check_filename()[source]

Test built-in check for if file name matches element

test_invalid_element_upf_v1()[source]

Test parsers exception on invalid element name in UPF v1.

test_invalid_element_upf_v2()[source]

Test parsers exception on invalid element name in UPF v2.

test_missing_element_upf_v1()[source]

Test parsers exception on missing element name in UPF v1.

test_missing_element_upf_v2()[source]

Test parsers exception on missing element name in UPF v2.

test_upf_version_one()[source]

Check if parsing for regular UPF file (version 1) succeeds.

test_upf_version_two()[source]

Check if parsing for regular UPF file (version 2) succeeds.