Exemplo n.º 1
0
 def test_serialize_deserialize_packed_resource_graph(self):
     serialized_resource_graph = graph.serialize_resource_graph(
         resource_graph)
     deserialized_resource_graph = graph.deserialize_resource_graph(
         serialized_resource_graph)
     self.assertEqual(len(resource_graph), len(deserialized_resource_graph))
     for start_node in resource_graph:
         self.assertIn(start_node, deserialized_resource_graph)
Exemplo n.º 2
0
 def resource_graph(self):
     serialized_resource_graph = self._md_cache.get("resource_graph", None)
     if serialized_resource_graph is not None:
         resource_graph = graph.deserialize_resource_graph(
             serialized_resource_graph)
         return resource_graph
     else:
         return None
Exemplo n.º 3
0
 def resource_graph(self):
     serialized_resource_graph = self._md_cache.get("resource_graph", None)
     if serialized_resource_graph is not None:
         resource_graph = graph.deserialize_resource_graph(
             serialized_resource_graph)
         return resource_graph
     else:
         return None