old_contents: """
  @brief      test tree node (time=5s)
  """
  
  
  import sys
  import os
  import unittest
  import re
  
  try:
      import src
  except ImportError:
      path = os.path.normpath(
          os.path.abspath(
              os.path.join(
                  os.path.split(__file__)[0],
                  "..",
                  "..")))
      if path not in sys.path:
          sys.path.append(path)
      import src
  
  from src.pyquickhelper.loghelper.flog import fLOG, _get_file_url, _get_file_txt, get_default_value_type, run_cmd
  
  
  class TestLog2 (unittest.TestCase):
  
      def test_synchro(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          url = "http://www.xavierdupre.fr/?blogpost=1"
          uu = _get_file_url(url, "/this/")
          assert uu == "/this//http!!www-xavierdupre-fr!_blogpost_1"
          uu = _get_file_txt("/g/r.zip")
          assert uu == "r.txt"
  
      def test_get_default_value_type(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          assert get_default_value_type(None) is None
          assert get_default_value_type(int) == 0
  
      def test_run_cmd(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          cmd = "dir" if sys.platform.startswith("win") else "ls"
          cmd += " " + os.path.abspath(os.path.split(__file__)[0])
          out, err = run_cmd(cmd, wait=True)
          if os.path.split(__file__)[-1] not in out:
              raise Exception("unable to find {0} in\n{1}\nCMD:\n{2}".format(os.path.split(__file__)[-1], out, cmd))
  
          out, err = run_cmd(cmd, wait=True, communicate=False)
          if os.path.split(__file__)[-1] not in out:
              raise Exception("unable to find {0} in\n{1}\nCMD:\n{2}".format(os.path.split(__file__)[-1], out, cmd))
  
  if __name__ == "__main__":
      unittest.main()
  
new_contents: """
  @brief      test tree node (time=5s)
  """
  
  
  import sys
  import os
  import unittest
  import re
  
  try:
      import src
  except ImportError:
      path = os.path.normpath(
          os.path.abspath(
              os.path.join(
                  os.path.split(__file__)[0],
                  "..",
                  "..")))
      if path not in sys.path:
          sys.path.append(path)
      import src
  
  from src.pyquickhelper.loghelper.flog import fLOG, _get_file_url, _get_file_txt, get_default_value_type, run_cmd
  
  
  class TestLog2 (unittest.TestCase):
  
      def test_synchro(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          url = "http://www.xavierdupre.fr/?blogpost=1"
          uu = _get_file_url(url, "/this/")
          assert uu == "/this//http!!www-xavierdupre-fr!_blogpost_1"
          uu = _get_file_txt("/g/r.zip")
          assert uu == "r.txt"
  
      def test_get_default_value_type(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          assert get_default_value_type(None) is None
          assert get_default_value_type(int) == 0
  
      def test_run_cmd(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          cmd = "dir" if sys.platform.startswith("win") else "ls"
          cmd += " " + os.path.abspath(os.path.split(__file__)[0])
          out, err = run_cmd(cmd, wait=True)
          if os.path.split(__file__)[-1] not in out and "setup.py" not in out:
              raise Exception("unable to find {0} in\n{1}\nCMD:\n{2}".format(os.path.split(__file__)[-1], out, cmd))
  
          out, err = run_cmd(cmd, wait=True, communicate=False)
          if os.path.split(__file__)[-1] not in out and "setup.py" not in out:
              raise Exception("unable to find {0} in\n{1}\nCMD:\n{2}".format(os.path.split(__file__)[-1], out, cmd))
  
  if __name__ == "__main__":
      unittest.main()
  
subject: fix a unit test for Travis