class_docstr: Tests to verify correct import behavior for file executables.
class_docstr_tok: ["Tests","to","verify","correct","import","behavior","for","file","executables","."]
code: def testFileNameFailure(self):
      # Confirm that an existing file without a .py suffix raises a ValueError.
      with self.assertRaises(ValueError):
          __main__.main(
              [
                  "__main__.py",
                  self.file2.name,
                  "Foo",
                  "double",
                  "--n",
                  "2",
              ]
          )
  
file_path: python-fire/fire/main_test.py
imports: import os
  import tempfile
  from fire import __main__
  from fire import testutils
label_desc: Use image node_id 3 for calling the MainModuleFileTest obj's underlying member method code with example usage: obj.testFileNameFailure() without return types