def assert_root(self, walk, node, return_value):
    root, root_state = walk[0]
    self.assertEquals(type(root), DependenciesNode)
    self.assertEquals(Return([return_value]), root_state)
    self.assertIn((node, Return(return_value)),
                  [(d, self.pg.state(d)) for d in self.pg.dependencies_of(root)])
Asserts that the first Node in a walk was a DependenciesNode with the single given result.
dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/engine/exp/test_scheduler.py/SchedulerTest.assert_root