docstr: InputFiles is a subclass of snakemake.io.NamedInput
  ierate over input and store each with the integer index - i.e 0, 1, 2
  then use input.items() to iterate over the named files and store them as named also
  check how this works with named things being lists
docstr_tok: ["InputFiles","is","a","subclass","of","snakemake.io.NamedInput","ierate","over","input","and","store","each","with","the","integer","index","-","i.e","0",",","1",",","2","then","use","input.items","(",")","to","iterate","over","the","named","files","and","store","them","as","named","also","check","how","this","works","with","named","things","being","lists"]
code: def test_named_list_one_named_one_str(self):
      """InputFiles is a subclass of snakemake.io.NamedInput
      ierate over input and store each with the integer index - i.e 0, 1, 2
      then use input.items() to iterate over the named files and store them as named also
      check how this works with named things being lists
      """
      named_list = InputFiles(["test.in", "named.in"])
      named_list._set_name("named", 1)
  
      actual = BashEncoder.encode_namedlist(named_list)
      expected = (
          r"""( [0]="test.in" [1]="named.in" [named]="named.in" )"""
      )
  
      assert actual == expected
  
imports: from textwrap import dedent
  from snakemake.io import InputFiles
  from snakemake.script import RustScript, BashEncoder
label_desc: Use image node_id 1 for calling the TestBashEncoder obj's underlying member method code with example usage: obj.test_named_list_one_named_one_str() without return types