old_contents: import os
  import sys
  import unittest
  
  from bento.core.node \
      import \
          Node, NodeWithBuild, create_root_with_source_tree
  
  def get_root():
      # FIXME: not exactly...
      if sys.platform == "win32":
          return ""
      else:
          return "/"
  
  class TestNode(unittest.TestCase):
      def setUp(self):
          self.root = Node("", None)
  
          if sys.version_info[0] < 3:
              self._string_classes = [str, unicode]
          else:
              self._string_classes = [str]
  
      def test_scratch_creation(self):
          root = Node("", None)
          self.assertEqual(root.abspath(), get_root())
  
      def test_find_node(self):
          r_n = os.path.abspath(os.getcwd())
  
          for f in self._string_classes:
              n = self.root.find_node(f(os.getcwd()))
              self.assertTrue(n)
              assert n.abspath() == r_n
  
      def test_make_node(self):
          r_n = os.path.abspath(os.getcwd())
  
          for f in self._string_classes:
              n = self.root.make_node(f(os.getcwd()))
              self.assertTrue(n)
              assert n.abspath() == r_n, "%s vs %s" % (n.abspath(), r_n)
  
  class TestNodeWithBuild(unittest.TestCase):
      def setUp(self):
          top = os.getcwd()
          build = os.path.join(os.getcwd(), "_tmp_build")
  
          self.root = create_root_with_source_tree(top, build)
  
      def test_root(self):
          self.assertEqual(self.root.abspath(), get_root())
  
      def test_cwd_node(self):
          cur_node = self.root.make_node(os.getcwd())
          self.assertEqual(os.getcwd(), cur_node.abspath())
  
new_contents: import os
  import sys
  import unittest
  
  from bento.core.node \
      import \
          Node, create_root_with_source_tree, find_root
  
  class TestNode(unittest.TestCase):
      def setUp(self):
          self.root = Node("", None)
  
          if sys.version_info[0] < 3:
              self._string_classes = [str, unicode]
          else:
              self._string_classes = [str]
  
      def test_scratch_creation(self):
          root = Node("", None)
          self.assertEqual(root, root)
  
      def test_find_node(self):
          r_n = os.path.abspath(os.getcwd())
  
          for f in self._string_classes:
              n = self.root.find_node(f(os.getcwd()))
              self.assertTrue(n)
              assert n.abspath() == r_n
  
      def test_make_node(self):
          r_n = os.path.abspath(os.getcwd())
  
          for f in self._string_classes:
              n = self.root.make_node(f(os.getcwd()))
              self.assertTrue(n)
              assert n.abspath() == r_n, "%s vs %s" % (n.abspath(), r_n)
  
  class TestNodeWithBuild(unittest.TestCase):
      def setUp(self):
          top = os.getcwd()
          build = os.path.join(os.getcwd(), "_tmp_build")
  
          self.root = create_root_with_source_tree(top, build)
  
      def test_root(self):
          self.assertEqual(self.root, find_root(self.root))
  
      def test_cwd_node(self):
          cur_node = self.root.make_node(os.getcwd())
          self.assertEqual(os.getcwd(), cur_node.abspath())
  
subject: remove useless get_root test function.