Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/prov/tests/test_graphs.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author | shellac |
---|---|
date | Mon, 01 Jun 2020 08:59:25 -0400 |
parents | 79f47841a781 |
children |
comparison
equal
deleted
inserted
replaced
4:79f47841a781 | 5:9b1c78e6ba9c |
---|---|
1 from __future__ import (absolute_import, division, print_function, | |
2 unicode_literals) | |
3 | |
4 import unittest | |
5 from prov.tests.examples import tests | |
6 from prov.graph import prov_to_graph, graph_to_prov | |
7 | |
8 | |
9 class ProvGraphTestCase(unittest.TestCase): | |
10 def test_simple_graph_conversion(self): | |
11 for name, doc_func in tests: | |
12 prov_org = doc_func() | |
13 g = prov_to_graph(prov_org) | |
14 if prov_org.has_bundles(): | |
15 # Cannot round-trip with documents containing bundles, skipping | |
16 continue | |
17 prov_doc = graph_to_prov(g) | |
18 self.assertEqual(prov_doc, prov_org, "Round trip graph conversion for '{}' failed.".format(name)) |