class_docstr: Test that all the nodes in a nested tree are added to the BrowserTree.
class_docstr_tok: ["Test","that","all","the","nodes","in","a","nested","tree","are","added","to","the","BrowserTree","."]
code: def test_nested(self):
      queue = deque()
      actual_names = []
      # The tree items are processed in breadth first order.
      # Verify that processing each sublist hits every node and
      # in the right order.
      expected_names = [
          "f0",
          "C0(base)",
          "f1",
          "c1",
          "F1",
          "C1()",
          "f2",
          "C2",
          "F3",
      ]
      CBT = browser.ChildBrowserTreeItem
      queue.extend((CBT(f0), CBT(C0)))
      while queue:
          cb = queue.popleft()
          sublist = cb.GetSubList()
          queue.extend(sublist)
          self.assertIn(cb.name, cb.GetText())
          self.assertIn(cb.GetIconName(), ("python", "folder"))
          self.assertIs(cb.IsExpandable(), sublist != [])
          actual_names.append(cb.name)
      self.assertEqual(actual_names, expected_names)
  
imports: from idlelib import browser
  from test.support import requires
  import unittest
  from unittest import mock
  from idlelib.idle_test.mock_idle import Func
  from idlelib.util import py_extensions
  from collections import deque
  import os.path
  import pyclbr
  from tkinter import Tk
  from idlelib.tree import TreeNode
label_desc: Use image node_id 1 for calling the NestedChildrenTest obj's underlying member method code with example usage: obj.test_nested() without return types