old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import itertools
  from zipfile import ZipFile
  
  from utils.summary_downloader import SummaryDownloader
  
  
  def test_download_unzipped(tmpdir):
  
      date, files = set_up_comparison_files()
  
      sdl = SummaryDownloader(
          tmpdir.mkdir('sdl').strpath, date, zip_summaries=False)
      sdl.run()
      tgt_dir = sdl.get_tgt_dir()
  
      assert sorted(os.listdir(tgt_dir)) == sorted(files)
  
      # deactivated due to performance reasons
      # tmpdir.remove()
  
  
  def test_download_zipped(tmpdir):
  
      date, files = set_up_comparison_files()
  
      sdl = SummaryDownloader(tmpdir.mkdir('sdl').strpath, date, cleanup=False)
      sdl.run()
      zip_path = sdl.get_zip_path()
  
      zip = ZipFile(zip_path)
  
      assert sorted(zip.namelist()) == sorted(files)
  
      zip.close()
  
      # deactivated due to performance reasons
      # tmpdir.remove()
  
  
  def set_up_comparison_files():
  
      date = "Oct 24, 2016"
      prefixes = ["ES", "FC", "GS", "PL", "RO", "SS", "TH", "TV"]
      game_ids = ["020081", "020082"]
  
      # setting up list of all HTML report files that should be downloaded for
      # specified date
      files = ["".join(c) + ".HTM" for c in list(
          itertools.product(prefixes, game_ids))]
      # adding JSON game report files
      files.extend(["".join((gid, ".json")) for gid in game_ids])
      # adding shootout report for one of the games
      files.append("SO020082.HTM")
  
      return date, files
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import itertools
  from zipfile import ZipFile
  
  from utils.summary_downloader import SummaryDownloader
  
  
  def test_download_unzipped(tmpdir):
  
      date, files = set_up_comparison_files()
  
      sdl = SummaryDownloader(
          tmpdir.mkdir('sdl').strpath, date, zip_summaries=False)
      sdl.run()
      tgt_dir = sdl.get_tgt_dir()
  
      assert sorted(os.listdir(tgt_dir)) == sorted(files)
  
      # deactivated due to performance reasons
      # tmpdir.remove()
  
  
  def test_download_zipped(tmpdir):
  
      date, files = set_up_comparison_files()
  
      sdl = SummaryDownloader(tmpdir.mkdir('sdl').strpath, date, cleanup=False)
      sdl.run()
      zip_path = sdl.get_zip_path()
  
      zip = ZipFile(zip_path)
  
      assert sorted(zip.namelist()) == sorted(files)
  
      zip.close()
  
      # deactivated due to performance reasons
      # tmpdir.remove()
  
  
  def set_up_comparison_files():
  
      date = "Oct 24, 2016"
      prefixes = ["ES", "FC", "GS", "PL", "RO", "SS", "TH", "TV"]
      game_ids = ["020081", "020082"]
  
      # setting up list of all HTML report files that should be downloaded for
      # specified date
      files = ["".join(c) + ".HTM" for c in list(
          itertools.product(prefixes, game_ids))]
      # adding JSON game feed files
      files.extend(["".join((gid, ".json")) for gid in game_ids])
      # adding JSON shift chart files
      files.extend(["".join((gid, "_sc.json")) for gid in game_ids])
      # adding shootout report for one of the games
      files.append("SO020082.HTM")
  
      return date, files
  
subject: Adjust test comparison files to extended downloading functionality