(self)
| 326 | class TestGraphLayout(unittest.TestCase): |
| 327 | |
| 328 | def setUp(self): |
| 329 | # Create test graph. |
| 330 | self.g = graph.Graph(layout=graph.SPRING, distance=10.0) |
| 331 | self.g.add_node("a") |
| 332 | self.g.add_node("b") |
| 333 | self.g.add_node("c") |
| 334 | self.g.add_edge("a", "b") |
| 335 | self.g.add_edge("b", "c") |
| 336 | |
| 337 | def test_layout(self): |
| 338 | # Assert GraphLayout properties. |