oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation

Module Contents

Classes

TestUnionFind

Test the UnionFind class.

TestBookWork

Test the BookWork class.

TestBookWorkFamily

Test the BookWorkFamily class.

TestGetPrefProductId

Test the get_pref_product_id function.

TestGetPrefWorkId

Test the get_pref_work_id function.

TestBookWorkAggregator

Test the BookWorkAggregator class.

TestBookWorkFamilyAggregator

Test the BookWorkFamilyAggregator class.

class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestUnionFind(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the UnionFind class.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_root_trivial()[source]
test_unite_two()[source]
test_unite_two_parts()[source]
test_unite_two_parts_merge()[source]
test_find_trivial()[source]
test_find_after_merge()[source]
test_find_after_two_parts_merge()[source]
test_get_partition_trivial()[source]
test_get_partition_two_parts()[source]
test_get_partition_two_parts_merge()[source]
class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestBookWork(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the BookWork class.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_ctor()[source]
test_add_product()[source]
class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestBookWorkFamily(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the BookWorkFamily class.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_ctor()[source]
class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestGetPrefProductId(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the get_pref_product_id function.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_unknown()[source]
test_get_pidproprietary()[source]
test_get_doi()[source]
test_get_gtin13()[source]
test_get_isbn()[source]
class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestGetPrefWorkId(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the get_pref_work_id function.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_unknown()[source]
test_pid_proprietary()[source]
test_doi()[source]
test_gtin13()[source]
test_isbn13()[source]
class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestBookWorkAggregator(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the BookWorkAggregator class.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_ctor()[source]
test_is_relevant_worK_relation()[source]
test_aggregate_empty()[source]
test_agg_relworks()[source]
test_agg_relworks_gtin13()[source]
test_agg_relworks_pid_proprietary()[source]
test_agg_products()[source]
test_agg_relprod_doi()[source]
test_agg_relprod_gtin13()[source]
test_aggregate1()[source]
test_aggregate2()[source]
test_aggregate3()[source]
test_agg_works_products_composite()[source]
test_get_pid_idx_missing()[source]
test_get_pid_idx_unknown()[source]
test_agg_relprod_missing_record()[source]
test_get_works_lookup_table()[source]
test_log_agg_relworks_errors()[source]
test_log_agg_relworks_errors_miss_gtin()[source]
test_log_get_works_lookup_table_errors()[source]
test_filtering_duplicate_isbns()[source]
class oaebu_workflows.onix_workflow.tests.test_onix_work_aggregation.TestBookWorkFamilyAggregator(*args, **kwargs)[source]

Bases: unittest.TestCase

Test the BookWorkFamilyAggregator class.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_ctor()[source]
test_agg_relproducts()[source]
test_aggregate_products_missing()[source]
test_aggregate_products()[source]
test_aggregate_products_gtin13()[source]
test_aggregate_products_pid_proprietary()[source]
test_get_wid_unsupported()[source]
test_get_wid_idx_unsupported()[source]
test_get_wid_idx_missing_isbn()[source]
test_get_wid_idx_missing_gtin()[source]
test_get_wid_idx_missing_pid_proprietary()[source]
test_get_works_family_lookup_table()[source]