# Path: godot/api.py



import unittest
from godot.api \
    import Graph, Subgraph, Cluster, Node, Edge
        self.assertEqual(edge.dir, "both")
        self.assertEqual(edge.label, "Test Edge")

#------------------------------------------------------------------------------
#  "SubgraphTestCase" class:
#------------------------------------------------------------------------------

class SubgraphTestCase(unittest.TestCase):
    """ Defines a test case for subgraphs.
    """

    def test_create_subgraph(self):
        """ Test creation of a subgraph.
        """
        subgraph = Subgraph(ID="subgraph1", rank="max")
        self.failUnless(subgraph.name == "subgraph1")
        self.assertEqual(subgraph.rank, "max")


    def test_create_cluster(self):
        """ Test creation of a cluster.
        """
        cluster = Cluster(ID="cluster_1", fixedsize=True)
        self.failUnless(cluster.name == "cluster_1")
        self.assertTrue(cluster.fixedsize)


    def test_cluster_name(self):
        """ Test that a cluster's name always starts 'cluster'.
        """

# Path: godot/api.py



# Path: godot/test/graph_test_case.py
import unittest
from godot.api \
    import Graph, Subgraph, Cluster, Node, Edge

        self.assertEqual(edge.dir, "both")
        self.assertEqual(edge.label, "Test Edge")

#------------------------------------------------------------------------------
#  "SubgraphTestCase" class:
#------------------------------------------------------------------------------

class SubgraphTestCase(unittest.TestCase):
    """ Defines a test case for subgraphs.
    """

    def test_create_subgraph(self):
        """ Test creation of a subgraph.
        """
        subgraph = Subgraph(ID="subgraph1", rank="max")
        self.failUnless(subgraph.name == "subgraph1")
        self.assertEqual(subgraph.rank, "max")


    def test_create_cluster(self):
        """ Test creation of a cluster.
        """
        cluster = Cluster(ID="cluster_1", fixedsize=True)
        self.failUnless(cluster.name == "cluster_1")
        self.assertTrue(cluster.fixedsize)


    def test_cluster_name(self):
        """ Test that a cluster's name always starts 'cluster'.
        """

        cluster = Cluster(ID="small")