Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/prov/tests/test_graphs.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
| author | shellac |
|---|---|
| date | Sat, 02 May 2020 07:14:21 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:26e78fe6e8c4 |
|---|---|
| 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)) |
