"""
@brief      test log(time=0s)
"""
import unittest
import warnings
from pyquickhelper.loghelper import fLOG
from pytube.exceptions import RegexMatchError  # pylint: disable=C0411
from code_beatrix import check


class TestCheckVideo(unittest.TestCase):

    def test_check(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        try:
            check(kind="video", fLOG=fLOG)
        except RegexMatchError as e:
            if "zero match" not in str(e):
                raise e
            warnings.warn("pytube issue: {}".format(e))


if __name__ == "__main__":
    unittest.main()

@@ -488,16 +488,42 @@
 r as e:%0A
+            import pytube%0A
         
@@ -612,33 +612,286 @@
 rn(%22
-pytube issue: %7B%7D%22.format(
+RegexMatchError: pytube version %7B%7D - pytube issue: %7B%7D%22.format(%0A                pytube.__version__, e))%0A        except KeyError as e:%0A            import pytube%0A            warnings.warn(%22KeyError: pytube version %7B%7D - pytube issue: %7B%7D%22.format(%0A                pytube.__version__, 
 e))%0A

Update test_check_video.py