Exemplo n.º 1
0
 def test_graph_entity(self):
     """Test the DOT graph output"""
     grp = ServiceGroup('Group')
     self.assertEqual(
         grp.graph(),
         'subgraph "cluster_Group" {\nlabel="Group";\nstyle=rounded;\nnode [style=filled];\n"Group.__hook" [style=invis];\n}\n'
     )
Exemplo n.º 2
0
 def test_graph_in_graph(self):
     """Test the DOT graph output with a servicegroup within a servicegroup"""
     grp = ServiceGroup('Group')
     subgrp = ServiceGroup('subGroup')
     grp.add_inter_dep(subgrp)
     self.assertEqual(
         grp.graph(),
         'subgraph "cluster_Group" {\nlabel="Group";\nstyle=rounded;\nnode [style=filled];\n"Group.__hook" [style=invis];\nsubgraph "cluster_Group.subGroup" {\nlabel="Group.subGroup";\nstyle=rounded;\nnode [style=filled];\n"Group.subGroup.__hook" [style=invis];\n}\n}\n'
     )
Exemplo n.º 3
0
 def test_graph_in_graph(self):
     """Test the DOT graph output with a servicegroup within a servicegroup"""
     grp = ServiceGroup('Group')
     subgrp = ServiceGroup('subGroup')
     grp.add_inter_dep(subgrp)
     self.assertEqual(grp.graph(), 'subgraph "cluster_Group" {\nlabel="Group";\nstyle=rounded;\nnode [style=filled];\n"Group.__hook" [style=invis];\nsubgraph "cluster_Group.subGroup" {\nlabel="Group.subGroup";\nstyle=rounded;\nnode [style=filled];\n"Group.subGroup.__hook" [style=invis];\n}\n}\n')
Exemplo n.º 4
0
 def test_graph_entity(self):
     """Test the DOT graph output"""
     grp = ServiceGroup('Group')
     self.assertEqual(grp.graph(), 'subgraph "cluster_Group" {\nlabel="Group";\nstyle=rounded;\nnode [style=filled];\n"Group.__hook" [style=invis];\n}\n')