new_contents: import logging
  import os
  import shutil
  
  import pytest
  
  from ebook_homebrew.archive import MakeArchive
  
  _logger = logging.getLogger(name=__name__)
  
  
  class TestItArchive(object):
  
      @staticmethod
      def copy_image_file(directory):
          test_file = os.path.join(os.path.dirname(__file__), "assets", "test_image.png")
          test_file2 = os.path.join(os.path.dirname(__file__), "assets", "test_image2.png")
          for i in range(10):
              shutil.copy2(test_file, directory)
              dst_file_name = os.path.join(directory, str(i).zfill(3) + ".png")
              os.rename(os.path.join(directory, "test_image.png"), dst_file_name)
          shutil.copy2(test_file2, directory)
          dst_ext_file_name = os.path.join(directory, "foo099" + "bar.png")
          os.rename(os.path.join(directory, "test_image2.png"), dst_ext_file_name)
          return True
  
      @pytest.mark.it
      def test_it_make_zip(self, tmpdir):
          _logger.debug("Temp directory: {tmp_dir}".format(tmp_dir=str(tmpdir)))
          self.copy_image_file(str(tmpdir))
          target_ins = MakeArchive(directory_path=str(tmpdir), extension="png")
          actual = target_ins.make_zip("foobar.zip", remove_flag=True)
          assert actual is True
          assert os.path.getsize(os.path.join(str(tmpdir), "foobar.zip")) > 1000
  
subject: add test it archive