Module Expr Str ImportFrom alias alias alias alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num For TupleStore NameStore NameStore AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body With Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad NameStore body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign NameStore BinOpAdd NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd Str NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Created on Jan 25, 2012

@author: Trung Dong Huynh
 __future__ absolute_import division print_function unicode_literals N/A unittest N/A logging N/A os prov.model ProvDocument ProvBundle ProvException first Literal prov.tests examples prov.tests.attributes TestAttributesBase prov.tests.qnames TestQualifiedNamesBase prov.tests.statements TestStatementsBase prov.tests.utility RoundTripTestCase N/A logger N/A N/A logging getLogger __name__ N/A EX_URI http://www.example.org/ N/A EX2_URI http://www.example2.org/ TestExamplesBase N/A object N/A N/A This is the base class for testing support for all the examples provided
    in prov.tests.examples.
    It is not runnable and needs to be included in a subclass of
    RoundTripTestCase.
     test_all_examples N/A N/A self N/A N/A N/A counter 0 N/A N/A name graph N/A examples tests N/A N/A counter 1 N/A N/A N/A logger info %d. Testing the %s example counter name N/A g N/A graph N/A N/A N/A self do_tests g N/A N/A TestLoadingProvToolboxJSON N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self json_path N/A N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ /json/ N/A filenames N/A N/A os listdir N/A self json_path N/A N/A self fails N/A N/A filename filenames N/A N/A N/A N/A filename endswith .json N/A N/A N/A open N/A N/A self json_path filename json_file N/A N/A N/A N/A g1 N/A N/A ProvDocument deserialize json_file N/A json_str N/A N/A g1 serialize indent 4 N/A g2 N/A N/A ProvDocument deserialize content json_str N/A N/A N/A self assertEqual g1 g2 N/A Round-trip JSON encoding/decoding failed:  %s. filename N/A N/A N/A N/A N/A N/A N/A self fails append filename N/A test_loading_all_json N/A N/A self N/A N/A N/A filename N/A self fails N/A N/A filepath N/A N/A self json_path filename N/A N/A open filepath json_file N/A N/A N/A N/A logger info Loading %s... filepath N/A g1 N/A N/A ProvDocument deserialize json_file N/A json_str N/A N/A g1 serialize indent 4 N/A g2 N/A N/A ProvDocument deserialize content json_str N/A N/A N/A self assertEqual g1 g2 N/A Round-trip JSON encoding/decoding failed:  %s. filename N/A N/A TestFlattening N/A N/A unittest TestCase N/A test_flattening N/A N/A self N/A N/A N/A N/A name graph N/A examples tests N/A N/A N/A N/A logger info Testing flattening of the %s example name N/A document N/A graph N/A flattened N/A N/A document flattened N/A flattened_records N/A set N/A N/A flattened get_records N/A n_records 0 N/A record N/A N/A document get_records N/A N/A n_records 1 N/A N/A N/A self assertIn record flattened_records N/A bundle N/A document bundles N/A N/A record N/A N/A bundle get_records N/A N/A n_records 1 N/A N/A N/A self assertIn record flattened_records N/A N/A N/A self assertEqual n_records N/A len N/A N/A flattened get_records N/A N/A TestUnification N/A N/A unittest TestCase N/A test_unifying N/A N/A self N/A N/A N/A json_path N/A N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ /unification/ N/A filenames N/A N/A os listdir json_path N/A filename filenames N/A N/A N/A N/A N/A filename endswith .json N/A N/A N/A filepath N/A json_path filename N/A N/A open filepath json_file N/A N/A N/A N/A logger info Testing unifying: %s filename N/A N/A N/A logger debug Loading %s... filepath N/A document N/A N/A ProvDocument deserialize json_file N/A flattened N/A N/A document flattened N/A unified N/A N/A flattened unified N/A N/A N/A self assertLess N/A len N/A N/A unified get_records N/A len N/A N/A flattened get_records N/A N/A TestBundleUpdate N/A N/A unittest TestCase N/A test_bundle_update_simple N/A N/A self N/A N/A N/A doc N/A ProvDocument N/A N/A N/A doc set_default_namespace EX_URI N/A b1 N/A N/A doc bundle b1 N/A N/A N/A b1 entity e N/A b2 N/A N/A doc bundle b2 N/A N/A N/A b2 entity e N/A N/A N/A self assertRaises ProvException N/A N/A N/A N/A N/A N/A b1 update 1 N/A N/A N/A self assertRaises ProvException N/A N/A N/A N/A N/A N/A b1 update doc N/A N/A N/A b1 update b2 N/A N/A N/A self assertEqual N/A len N/A N/A b1 get_records 2 N/A test_document_update_simple N/A N/A self N/A N/A N/A d1 N/A ProvDocument N/A N/A N/A d1 set_default_namespace EX_URI N/A N/A N/A d1 entity e N/A b1 N/A N/A d1 bundle b1 N/A N/A N/A b1 entity e N/A d2 N/A ProvDocument N/A N/A N/A d2 set_default_namespace EX_URI N/A N/A N/A d2 entity e N/A b1 N/A N/A d2 bundle b1 N/A N/A N/A b1 entity e N/A b2 N/A N/A d2 bundle b2 N/A N/A N/A b2 entity e N/A N/A N/A self assertRaises ProvException N/A N/A N/A N/A N/A N/A d1 update 1 N/A N/A N/A d1 update d2 N/A N/A N/A self assertEqual N/A len N/A N/A d1 get_records 2 N/A N/A N/A self assertEqual N/A len N/A d1 bundles 2 N/A N/A TestAddBundle N/A N/A unittest TestCase N/A document_1 N/A N/A self N/A N/A N/A d1 N/A ProvDocument N/A ns_ex N/A N/A d1 add_namespace ex EX_URI N/A N/A N/A d1 entity N/A ns_ex N/A e1 N/A d1 N/A document_2 N/A N/A self N/A N/A N/A d2 N/A ProvDocument N/A ns_ex N/A N/A d2 add_namespace ex EX2_URI N/A N/A N/A d2 activity N/A ns_ex N/A a1 N/A d2 N/A bundle_0 N/A N/A self N/A N/A N/A b N/A ProvBundle namespaces N/A ex EX2_URI N/A b N/A test_add_bundle_simple N/A N/A self N/A N/A N/A d1 N/A N/A self document_1 N/A b0 N/A N/A self bundle_0 sub_test_1 N/A N/A N/A N/A N/A N/A N/A d1 add_bundle b0 N/A N/A N/A N/A self assertRaises ProvException sub_test_1 N/A N/A N/A self assertFalse N/A N/A d1 has_bundles N/A N/A N/A d1 add_bundle b0 ex:b0 N/A N/A N/A self assertTrue N/A N/A d1 has_bundles N/A N/A N/A self assertIn b0 N/A d1 bundles sub_test_2 N/A N/A N/A N/A N/A ex2_b0 N/A b0 identifier N/A N/A N/A d1 add_bundle N/A ProvBundle identifier ex2_b0 N/A N/A N/A N/A self assertRaises ProvException sub_test_2 N/A N/A N/A d1 add_bundle N/A ProvBundle ex:b0 N/A N/A N/A self assertEqual N/A len N/A d1 bundles 2 N/A test_add_bundle_document N/A N/A self N/A N/A N/A d1 N/A N/A self document_1 N/A d2 N/A N/A self document_2 sub_test_1 N/A N/A N/A N/A N/A N/A N/A d1 add_bundle d2 N/A N/A N/A N/A self assertRaises ProvException sub_test_1 N/A ex2_b2 N/A N/A d2 valid_qualified_name ex:b2 N/A N/A N/A d1 add_bundle d2 ex:b2 N/A N/A N/A self assertEqual ex2_b2 N/A N/A first N/A d1 bundles identifier N/A N/A N/A self assertNotIn d2 N/A d1 bundles N/A b2 N/A ProvBundle N/A N/A N/A b2 update d2 N/A N/A N/A self assertIn b2 N/A d1 bundles N/A N/A TestLiteralRepresentation N/A N/A unittest TestCase N/A test_literal_provn_with_single_quotes N/A N/A self N/A N/A N/A l N/A Literal {"foo": "bar"} N/A string_rep N/A N/A l provn_representation N/A N/A N/A self assertTrue N/A {\"f string_rep N/A test_literal_provn_with_triple_quotes N/A N/A self N/A N/A N/A l N/A Literal """foo\nbar""" N/A string_rep N/A N/A l provn_representation N/A N/A N/A self assertTrue N/A \"\"\"f string_rep N/A N/A AllTestsBase N/A TestExamplesBase TestStatementsBase TestAttributesBase TestQualifiedNamesBase N/A N/A This is a test to include all available tests.
     N/A N/A RoundTripModelTest N/A RoundTripTestCase AllTestsBase N/A assertRoundTripEquivalence N/A N/A self prov_doc msg N/A None N/A N/A Exercises prov.model without the actual serialization and PROV-N
        generation.
         N/A provn_content N/A N/A prov_doc get_provn N/A N/A N/A self assertEqual prov_doc prov_doc N/A The document is not self-equal:
 provn_content N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main