MCPcopy Index your code
hub / github.com/clips/pattern / setUp

Method setUp

test/test_graph.py:53–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51class TestNode(unittest.TestCase):
52
53 def setUp(self):
54 # Create test graph.
55 self.g = graph.Graph()
56 self.g.add_node("a", radius=5, stroke=(0,0,0,1), strokewidth=1, fill=None, text=(0,0,0,1))
57 self.g.add_node("b", radius=5)
58 self.g.add_node("c", radius=5)
59 self.g.add_edge("a", "b")
60 self.g.add_edge("b", "c")
61
62 def test_node(self):
63 # Assert node properties.

Callers

nothing calls this directly

Calls 2

add_nodeMethod · 0.45
add_edgeMethod · 0.45

Tested by

no test coverage detected