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

Method test_update

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

Source from the content-addressed store, hash-verified

286 print "pattern.graph.Graph.split()"
287
288 def test_update(self):
289 # Assert node position after updating layout algorithm.
290 self.g.update()
291 for n in self.g.nodes:
292 self.assertTrue(n.x != 0)
293 self.assertTrue(n.y != 0)
294 self.g.layout.reset()
295 for n in self.g.nodes:
296 self.assertTrue(n.x == 0)
297 self.assertTrue(n.y == 0)
298 print "pattern.graph.Graph.update()"
299
300 def test_copy(self):
301 # Assert deep copy of Graph.

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected