code: def test_get_file_list(self):
      # make sure MANIFEST is recalculated
      dist, cmd = self.get_cmd()
  
      # filling data_files by pointing files in package_data
      dist.package_data = {"somecode": ["*.txt"]}
      self.write_file((self.tmp_dir, "somecode", "doc.txt"), "#")
      cmd.formats = ["gztar"]
      cmd.ensure_finalized()
      cmd.run()
  
      f = open(cmd.manifest)
      try:
          manifest = [
              line.strip()
              for line in f.read().split("\n")
              if line.strip() != ""
          ]
      finally:
          f.close()
  
      self.assertEqual(len(manifest), 5)
  
      # adding a file
      self.write_file((self.tmp_dir, "somecode", "doc2.txt"), "#")
  
      # make sure build_py is reinitialized, like a fresh run
      build_py = dist.get_command_obj("build_py")
      build_py.finalized = False
      build_py.ensure_finalized()
  
      cmd.run()
  
      f = open(cmd.manifest)
      try:
          manifest2 = [
              line.strip()
              for line in f.read().split("\n")
              if line.strip() != ""
          ]
      finally:
          f.close()
  
      # do we have the new file in MANIFEST ?
      self.assertEqual(len(manifest2), 6)
      self.assertIn("doc2.txt", manifest2[-1])
  
imports: import os
  import tarfile
  import unittest
  import warnings
  import zipfile
  from os.path import join
  from textwrap import dedent
  from test.test_support import captured_stdout, check_warnings, run_unittest
  from distutils.command.sdist import sdist, show_formats
  from distutils.core import Distribution
  from distutils.tests.test_config import PyPIRCCommandTestCase
  from distutils.errors import DistutilsOptionError
  from distutils.spawn import find_executable
  from distutils.log import WARN
  from distutils.filelist import FileList
  from distutils.archive_util import ARCHIVE_FORMATS
label_desc: Use image node_id 17 for calling the SDistTestCase obj's underlying member method code with example usage: obj.test_get_file_list() without return types