old_contents: # -*- coding: utf-8 -*-
  """
  @brief      test log(time=25s)
  """
  import os
  import unittest
  from pyquickhelper.loghelper import fLOG
  from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
  from pyquickhelper.pycode import add_missing_development_version, ExtTestCase
  import ensae_teaching_cs
  
  
  class TestNotebookCov_Ethics(ExtTestCase):
  
      def setUp(self):
          add_missing_development_version(["pymyinstall", "pyensae", "jyquickhelper"],
                                          __file__, hide=True)
  
      def test_notebook_tsp(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          def valid(cell):
              if "from fairtest import" in cell:
                  return False
              if "test([inv])" in cell:
                  return False
              return True
  
          self.assertTrue(ensae_teaching_cs is not None)
          folder = os.path.join(os.path.dirname(__file__),
                                "..", "..", "_doc", "notebooks", "td2a_ml")
          test_notebook_execution_coverage(__file__, "ethics", folder, valid=valid,
                                           this_module_name="ensae_teaching_cs", fLOG=fLOG)
  
  
  if __name__ == "__main__":
      unittest.main()
  
new_contents: # -*- coding: utf-8 -*-
  """
  @brief      test log(time=43s)
  """
  import os
  import unittest
  from pyquickhelper.loghelper import fLOG
  from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
  from pyquickhelper.pycode import add_missing_development_version, ExtTestCase
  import ensae_teaching_cs
  
  
  class TestNotebookCov_Ethics(ExtTestCase):
  
      def setUp(self):
          add_missing_development_version(["pymyinstall", "pyensae", "jyquickhelper"],
                                          __file__, hide=True)
  
      def test_notebook_ethic(self):
          fLOG(
              __file__,
              self._testMethodName,
              OutputPrint=__name__ == "__main__")
  
          def valid(cell):
              if "test([inv])" in cell:
                  return False
              return True
  
          self.assertTrue(ensae_teaching_cs is not None)
          folder = os.path.join(os.path.dirname(__file__),
                                "..", "..", "_doc", "notebooks", "td2a_ml")
          test_notebook_execution_coverage(__file__, "ethics", folder, valid=valid,
                                           this_module_name="ensae_teaching_cs", fLOG=fLOG)
  
  
  if __name__ == "__main__":
      unittest.main()
  
subject: Update test_nb_coverage_ethics.py