code: def test_default_toolset_requirements():
      """Test that default toolset's requirements get applied correctly."""
  
      t = BoostBuild.Tester(
          "--user-config= --ignore-site-config",
          pass_toolset=False,
          use_test_config=False,
          ignore_toolset_requirements=False,
      )
  
      toolset_name = "customTestToolsetWithRequirements"
  
      # Custom toolset.
      t.write(
          toolset_name + ".jam",
          """
  import feature ;
  import toolset ;
  feature.extend toolset : %(toolset_name)s ;
  toolset.add-requirements <description>toolset-requirement ;
  rule init ( ) { }
  """
          % {"toolset_name": toolset_name},
      )
  
      # Main Boost Build project script.
      t.write(
          "jamroot.jam",
          """
  import build-system ;
  import errors ;
  import feature ;
  import notfile ;
  
  build-system.set-default-toolset %(toolset_name)s ;
  
  feature.feature description : : free incidental ;
  
  # We use a rule instead of an action to avoid problems with action output not
  # getting piped to stdout by the testing system.
  rule buildRule ( names : targets ? : properties * )
  {
      local descriptions = [ feature.get-values description : $(properties) ] ;
      ECHO "descriptions:" /$(descriptions)/ ;
      local toolset = [ feature.get-values toolset : $(properties) ] ;
      ECHO "toolset:" /$(toolset)/ ;
  }
  
  notfile testTarget
      : @buildRule
      :
      :
      <description>target-requirement
      <description>toolset-requirement:<description>conditioned-requirement
      <description>unrelated-condition:<description>unrelated-description ;
  """
          % {"toolset_name": toolset_name},
      )
  
      t.run_build_system()
      t.expect_output_lines(
          configuring_default_toolset_message % toolset_name
      )
      t.expect_output_lines(
          "descriptions: /conditioned-requirement/ "
          "/target-requirement/ /toolset-requirement/"
      )
      t.expect_output_lines("toolset: /%s/" % toolset_name)
  
      t.cleanup()
  
imports: import BoostBuild
label_desc: Use image node_id 3 for calling a global function with example usage: test_default_toolset_requirements() without return types