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' )
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' )
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')
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')